2023-01-27 17:11:10 -06:00
|
|
|
<script type="text/javascript">
|
2024-06-24 14:56:00 -05:00
|
|
|
function confirmLeaveOrganization() {
|
2023-01-27 17:11:10 -06:00
|
|
|
$('.leave-organization').click(function () {
|
|
|
|
if (confirm('{{ _('Are you sure you want to leave this organization?') }}\n' +
|
|
|
|
{% if organization.is_open %}
|
|
|
|
'{{ _('You will have to rejoin to show up on the organization leaderboard.') }}'
|
|
|
|
{% else %}
|
|
|
|
'{{ _('You will have to request membership in order to join again.') }}'
|
|
|
|
{% endif %}
|
|
|
|
)) {
|
|
|
|
$(this).parent().submit();
|
|
|
|
}
|
|
|
|
});
|
2024-06-24 14:56:00 -05:00
|
|
|
}
|
|
|
|
$(function () {
|
|
|
|
$('.time-remaining').each(function () {
|
|
|
|
count_down($(this));
|
|
|
|
});
|
2023-01-27 17:11:10 -06:00
|
|
|
});
|
2022-05-30 01:59:53 -05:00
|
|
|
</script>
|