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:
tom mortensen
2025-08-27 08:43:22 -07:00
committed by GitHub
@@ -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?>);
}