Inprovements to entry disabling.

This commit is contained in:
2019-08-21 22:39:42 +02:00
parent ac2efc29c9
commit 7629eed323
2 changed files with 9 additions and 7 deletions

View File

@ -43,7 +43,7 @@
$(function () {
$('[data-toggle="tooltip"]').tooltip();
$('#entryToggle').change(function() {
$.ajax({url: "/api/entries/accept/"+($('#entryToggle').is(":checked") ? "1" : "0"), complete: refreshEntryToggle});
$.ajax({url: "/api/entries/accept/"+($('#entryToggle').is(":checked") ? "1" : "0"), complete: setTimeout(refreshEntryToggle, 500)});
})
refreshEntryToggle();
})