From f9847fcaba006e1faf61a0b54606d8df1be04a3e Mon Sep 17 00:00:00 2001 From: TheWitness Date: Fri, 27 Dec 2024 13:58:09 -0500 Subject: [PATCH] QA: Fix: #6019 - Refresh logging out --- lib/html_filter.php | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/lib/html_filter.php b/lib/html_filter.php index 76ad3aa924..1f23b21e9b 100644 --- a/lib/html_filter.php +++ b/lib/html_filter.php @@ -886,9 +886,20 @@ function finishFinalize(options, data) { $buttonFunctions $(function() { - refreshFunction = '$changeFunction'; - refreshMSeconds = $refreshMSeconds; - setupPageTimeout(); + if ($('#refresh').length) { + refreshFunction = '$changeFunction'; + refreshMSeconds = $refreshMSeconds; + refreshIsLogout = false; + setupPageTimeout(); + + $('#refresh').on('selectmenuopen', function() { + if (myRefresh > 0) { + clearTimeout(myRefresh); + } + }); + } else if (myRefresh > 0) { + clearTimeout(myRefresh); + } $('#" . $this->form_id . "').submit(function(event) { event.preventDefault();