diff --git a/kfet/static/kfet/js/kfet.js b/kfet/static/kfet/js/kfet.js index 0fa6e06a..b30772a9 100644 --- a/kfet/static/kfet/js/kfet.js +++ b/kfet/static/kfet/js/kfet.js @@ -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; }); } diff --git a/kfet/templates/kfet/kpsul.html b/kfet/templates/kfet/kpsul.html index d07565fb..2112c2ec 100644 --- a/kfet/templates/kfet/kpsul.html +++ b/kfet/templates/kfet/kpsul.html @@ -176,12 +176,6 @@ $(document).ready(function() { 'use strict'; - // ----- - // General - // ----- - - // Lock to avoid multiple requests - window.lock = 0; // ----- // Auth