Eintragungstoggle fix

This commit is contained in:
2021-10-06 01:59:51 +02:00
parent 569daf0a04
commit e6bc974a6f

View File

@ -116,10 +116,10 @@ table td:nth-child(2) {
$.getJSON("/api/entries/accept", (data) => { $.getJSON("/api/entries/accept", (data) => {
if (data["value"]!=$('#entryToggle').is(":checked")) { if (data["value"]!=$('#entryToggle').is(":checked")) {
if(data["value"]==1) { if(data["value"]==1) {
$('#entryToggle').bootstrapToggle('on') $('#entryToggle').data('bs.toggle').on('true')
} }
else { else {
$('#entryToggle').bootstrapToggle('off') $('#entryToggle').data('bs.toggle').off('true')
} }
} }
}) })