NDOJ/templates/organization/home-js.html

23 lines
842 B
HTML
Raw Normal View History

2022-05-30 06:59:53 +00:00
<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();
}
});
2022-11-25 06:27:39 +00:00
$('#control-panel a').on('click', function(e) {
e.preventDefault();
navigateTo($(this));
})
2022-05-30 06:59:53 +00:00
});
</script>