mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Add some documentation and code style
This commit is contained in:
parent
1d47e38780
commit
692b887d99
@ -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: `<span>${message}</span>
|
||||
|
Loading…
Reference in New Issue
Block a user