Une MAJ de sécurité est nécessaire sur notre version actuelle. Elle sera effectuée lundi 02/08 entre 12h30 et 13h. L'interruption de service devrait durer quelques minutes (probablement moins de 5 minutes).

Commit cb6cf2b6 authored by flothoni's avatar flothoni
Browse files

waiting icon, add some condition to show/hide it

At analysis loading
At list resort
parent 7cd85a34
......@@ -282,6 +282,9 @@ List.prototype = {
sort.id = "list_sort_select"
sort.className = "list_sort_select"
sort.onchange = function() {
self.update_is_pending = true
self.m.updateIcon()
self.sort_option[this.value]()
self.sort_option_selected = this.value
// close the lock
......@@ -290,6 +293,8 @@ List.prototype = {
var div = document.getElementById("div_sortLock")
div.className = "icon-lock-1 list_lock_on"
div.title = "Release sort as '" + self.sort_option_selected +"' on sample " + self.m.getStrTime(self.m.t, "names")
self.update_is_pending = false
self.m.updateIcon()
}
for (var key in this.sort_option) {
......
......@@ -1354,6 +1354,9 @@ changeAlleleNotation: function(alleleNotation, update, save) {
if (this.waiting_screen_is_on)
return true;
if (this.loading_is_pending == true)
return true;
return false;
},
......
......@@ -103,7 +103,7 @@ Model_loader.prototype = {
var self = this;
console.log("load()");
this.loading_is_pending = true
if (document.getElementById(id)
.files.length === 0) {
return;
......@@ -127,6 +127,7 @@ Model_loader.prototype = {
self.check_export_monitor()
self.file_source = "local";
}
this.loading_is_pending = false
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment