Fix: Don't reload page if modal is open

This commit is contained in:
Zack Spear
2025-05-05 12:53:01 -07:00
parent 6edb1c6ea1
commit 3b982b8399
2 changed files with 198 additions and 126 deletions

View File

@@ -434,7 +434,13 @@ document.addEventListener("visibilitychange", (event) => {
nchanFocusStop();
} else {
<? if (isset($myPage['Load']) && $myPage['Load'] > 0):?>
window.location.reload();
if ( dialogOpen() ) {
clearInterval(timers.reload);
setTimerReload();
nchanFocusStart();
} else {
window.location.reload();
}
<?else:?>
nchanFocusStart();
<?endif;?>