Skip to content
Snippets Groups Projects
Commit 99fb68b2 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

removed last jquery calls

parent 57a56b69
No related branches found
No related tags found
3 merge requests!1937Development,!1910Development,!1909Resolve "Fix spam page js"
......@@ -114,14 +114,14 @@
document.querySelector("#head > button").addEventListener('click', function() {
if(!updating) {
$("#head > button").removeClass("btn-danger");
$("#head > button").addClass("btn-success");
document.querySelector("#head > button").classList.remove("btn-danger");
document.querySelector("#head > button").classList.add("btn-success");
buttonText = "Aktualisierung stoppen";
interval = setInterval(updateQueries, 1000);
}
var updateAt = lastUpdate + 60000;
var updateIn = Math.round((updateAt - Date.now()) / 1000);
$("#head > button").html(buttonText + " (" + updateIn + ")");
document.querySelector("#head > button").innerHTML = buttonText + " (" + updateIn + ")";
updating = !updating;
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment