mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-07-04 09:11:42 +02:00
Eintragungstoggle fix
This commit is contained in:
@ -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')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user