mirror of
https://github.com/unraid/webgui.git
synced 2026-01-13 05:00:06 -06:00
Updated: animated spinner logic
This commit is contained in:
@@ -54,7 +54,7 @@ function addLog(logLine) {
|
||||
}
|
||||
|
||||
function disablePage() {
|
||||
top.document.getElementsByClassName('spinner fixed')[0].style.display = 'block';
|
||||
setTimeout(function(){top.document.getElementsByClassName('spinner fixed')[0].style.display = 'block';},150); // show spinner when operation takes longer than 150ms
|
||||
for (var i=0,element; element=top.document.querySelectorAll('input,button,select')[i]; i++) element.disabled = true;
|
||||
for (var i=0,link; link=top.document.getElementsByTagName('a')[i]; i++) link.style.color = "gray"; //fake disable
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user