Change toggle sync delay

This commit is contained in:
Phillip Kühne 2019-08-22 15:20:18 +02:00
parent aa70dc3a94
commit b4ba000779

View File

@ -42,7 +42,7 @@
<script> <script>
$(function () { $(function () {
$('#entryToggle').change(function() { $('#entryToggle').change(function() {
$.ajax({url: "/api/entries/accept/"+($('#entryToggle').is(":checked") ? "1" : "0"), complete: setTimeout(refreshEntryToggle, 500)}); $.ajax({url: "/api/entries/accept/"+($('#entryToggle').is(":checked") ? "1" : "0"), complete: setTimeout(refreshEntryToggle, 1000)});
}) })
refreshEntryToggle() refreshEntryToggle()
$("#entrytable").bootstrapTable().on('load-success.bs.table', function() { $("#entrytable").bootstrapTable().on('load-success.bs.table', function() {