diff --git a/app/static/js/nopaque.js b/app/static/js/nopaque.js index 3c3d9309..56c42cd3 100644 --- a/app/static/js/nopaque.js +++ b/app/static/js/nopaque.js @@ -1,6 +1,9 @@ +/* + * The nopaque object is used as a namespace for nopaque specific functions and + * variables. + */ var nopaque = {}; - // nopaque ressources nopaque.socket = io(); @@ -28,7 +31,6 @@ nopaque.forms.init = function() { progressModal = M.Modal.getInstance(progressModalElement); progressModal.options.dismissible = false; abortRequestElement = progressModalElement.querySelector(".abort-request"); - // just use request.abort? abortRequestElement.addEventListener("click", function() {request.abort();}); progressElement = progressModalElement.querySelector(".determinate"); } @@ -87,8 +89,7 @@ nopaque.navigation.init = function() { nopaque.toast = function(message, color="") { - var toast; - var toastActionElement; + var toast, toastActionElement; toast = M.toast({classes: color, html: `${message}