diff --git a/module/upgrade/ui/consistency.html.php b/module/upgrade/ui/consistency.html.php index 4cd322703a..7f4423b678 100644 --- a/module/upgrade/ui/consistency.html.php +++ b/module/upgrade/ui/consistency.html.php @@ -48,7 +48,7 @@ div setClass('text-center'), btn ( - on::click('loadCurrentPage'), + on::click('loadCurrentPage()'), set::type('primary'), setClass('px-10'), $lang->refresh diff --git a/module/upgrade/ui/moveextfiles.html.php b/module/upgrade/ui/moveextfiles.html.php index 10435ffa05..e4c4651e6c 100644 --- a/module/upgrade/ui/moveextfiles.html.php +++ b/module/upgrade/ui/moveextfiles.html.php @@ -87,7 +87,7 @@ div $lang->upgrade->moveEXTFileFail, btn ( - on::click('loadCurrentPage'), + on::click('loadCurrentPage()'), setClass('px-6 ml-4'), set::text($lang->refresh) ) diff --git a/www/js/zui3/zin.js b/www/js/zui3/zin.js index 750b3389f3..a0c97e2aaa 100644 --- a/www/js/zui3/zin.js +++ b/www/js/zui3/zin.js @@ -897,6 +897,11 @@ function loadCurrentPage(options) { + if(options instanceof Event || options instanceof HTMLElement) + { + options = {}; + if(DEBUG) console.warn('[APP] ', 'loadCurrentPage() should not be called with an event or element.'); + } if(typeof options === 'string') options = {selector: options}; return loadPage(options); }