Skip to content

Commit

Permalink
Changed the method for controlling the visibility of the "#button_zoo…
Browse files Browse the repository at this point in the history
…m" 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.
  • Loading branch information
IgorA100 authored Jan 3, 2025
1 parent 3cdbae2 commit 0bb0646
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/skins/classic/views/js/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
);

Expand Down

0 comments on commit 0bb0646

Please sign in to comment.