mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-20 19:41:49 +02:00
Fix entry mode Toggle state sync
This commit is contained in:
parent
58695e568f
commit
ac2efc29c9
@ -43,10 +43,9 @@
|
|||||||
$(function () {
|
$(function () {
|
||||||
$('[data-toggle="tooltip"]').tooltip();
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
$('#entryToggle').change(function() {
|
$('#entryToggle').change(function() {
|
||||||
$.ajax({url: "/api/entries/accept/"+($('#entryToggle').is(":checked") ? "1" : "0")});
|
$.ajax({url: "/api/entries/accept/"+($('#entryToggle').is(":checked") ? "1" : "0"), complete: refreshEntryToggle});
|
||||||
refreshEntryToggle()
|
|
||||||
})
|
})
|
||||||
refreshEntryToggle()
|
refreshEntryToggle();
|
||||||
})
|
})
|
||||||
function confirmDeleteEntry(name, entry_id) {
|
function confirmDeleteEntry(name, entry_id) {
|
||||||
bootbox.confirm("Wirklich den Eintrag von "+name+" löschen?", function(result){
|
bootbox.confirm("Wirklich den Eintrag von "+name+" löschen?", function(result){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user