mirror of
https://github.com/unraid/webgui.git
synced 2026-05-25 07:40:01 -05:00
Merge pull request #2342 from unraid/fix-firefox-cancel-resend
Fix: Prevent Firefox from showing resend/cancel popup when starting array
This commit is contained in:
@@ -94,10 +94,10 @@ function refresh(top) {
|
||||
if (typeof top === 'undefined') {
|
||||
for (var i=0,element; element=document.querySelectorAll('input,button,select')[i]; i++) {element.disabled = true;}
|
||||
for (var i=0,link; link=document.getElementsByTagName('a')[i]; i++) { link.style.color = "gray"; } //fake disable
|
||||
location.reload();
|
||||
location.replace(location.href);
|
||||
} else {
|
||||
$.cookie('top',top);
|
||||
location.reload();
|
||||
location.replace(location.href);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -549,7 +549,7 @@ $.ajaxPrefilter(function(s, orig, xhr){
|
||||
function setTimerReload() {
|
||||
timers.reload = setInterval(function(){
|
||||
if (! dialogOpen() ) {
|
||||
location.reload();
|
||||
location.replace(location.href);
|
||||
}
|
||||
},<?=$myPage['Load'] * 60000?>);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user