WIP: Aureplop/kpsul js refactor #501

Draft
delobell wants to merge 215 commits from aureplop/kpsul_js_refactor into master
2 changed files with 3 additions and 9 deletions
Showing only changes of commit 5020037103 - Show all commits

View file

@ -268,9 +268,9 @@ var authDialog = new UserDialog({
});
function api_with_auth(settings, password) {
if (window.lock == 1)
if (window.api_lock == 1)
return false;
window.lock = 1;
window.api_lock = 1;
var url = settings.url;
if (!url)
@ -311,6 +311,6 @@ function api_with_auth(settings, password) {
}
})
.always(function() {
window.lock = 0;
window.api_lock = 0;
});
}

View file

@ -176,12 +176,6 @@
$(document).ready(function() {
'use strict';
// -----
// General
// -----
// Lock to avoid multiple requests
window.lock = 0;
// -----
// Auth