da2a11adf9
This reverts commit 0494a36681
.
23 lines
No EOL
704 B
HTML
Executable file
23 lines
No EOL
704 B
HTML
Executable file
<script type="text/javascript">
|
|
$(function () {
|
|
$('.time-remaining').each(function () {
|
|
count_down($(this));
|
|
});
|
|
$('.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();
|
|
}
|
|
});
|
|
|
|
$('#control-panel a').on('click', function(e) {
|
|
e.preventDefault();
|
|
navigateTo($(this));
|
|
})
|
|
});
|
|
</script> |