Fix entry mode Toggle state sync

This commit is contained in:
Phillip Kühne 2019-08-20 03:01:39 +02:00
parent 58695e568f
commit ac2efc29c9

View File

@ -43,10 +43,9 @@
$(function () {
$('[data-toggle="tooltip"]').tooltip();
$('#entryToggle').change(function() {
$.ajax({url: "/api/entries/accept/"+($('#entryToggle').is(":checked") ? "1" : "0")});
refreshEntryToggle()
$.ajax({url: "/api/entries/accept/"+($('#entryToggle').is(":checked") ? "1" : "0"), complete: refreshEntryToggle});
})
refreshEntryToggle()
refreshEntryToggle();
})
function confirmDeleteEntry(name, entry_id) {
bootbox.confirm("Wirklich den Eintrag von "+name+" löschen?", function(result){