From 0bb06461ba03506ad1b641d34e5246da8428c289 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Fri, 3 Jan 2025 13:32:55 +0300 Subject: [PATCH] Changed the method for controlling the visibility of the "#button_zoom" button bar (event.js) If we use "slideDown" & "slideUp", then with "display=grid" for the external block, there may be problems, Perhaps because we also used "display=none" for the button block. --- web/skins/classic/views/js/event.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/skins/classic/views/js/event.js b/web/skins/classic/views/js/event.js index bc59267526..27cfc58089 100644 --- a/web/skins/classic/views/js/event.js +++ b/web/skins/classic/views/js/event.js @@ -1704,12 +1704,14 @@ function initPage() { function() { //const id = stringToNumber(this.id); //Montage & Watch page const id = eventData.MonitorId; // Event page - $j('#button_zoom' + id).stop(true, true).slideDown('fast'); + //$j('#button_zoom' + id).stop(true, true).slideDown('fast'); + $j('#button_zoom' + id).removeClass('hidden'); }, function() { //const id = stringToNumber(this.id); //Montage & Watch page const id = eventData.MonitorId; // Event page - $j('#button_zoom' + id).stop(true, true).slideUp('fast'); + //$j('#button_zoom' + id).stop(true, true).slideUp('fast'); + $j('#button_zoom' + id).addClass('hidden'); } );