From a8f79a6e009739f25086ba3eed034b1ca52ebf5e Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Sat, 2 Jan 2021 08:06:35 -0600 Subject: [PATCH] prevent page scrolling when objdetect modal is opened --- web/skins/classic/views/js/events.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/skins/classic/views/js/events.js b/web/skins/classic/views/js/events.js index 900c5ceca..ac985e520 100644 --- a/web/skins/classic/views/js/events.js +++ b/web/skins/classic/views/js/events.js @@ -61,7 +61,8 @@ function processRows(rows) { if ( canEdit.Monitors ) row.Monitor = '' + row.Monitor + ''; if ( canEdit.Events ) row.Cause = '' + row.Cause + ''; if ( row.Notes.indexOf('detected:') >= 0 ) { - row.Cause = row.Cause + '
' + row.Notes + '
'; + // href is set to '##' here to prevent the page from scrolling to the top when the modal is opened + row.Cause = row.Cause + '
' + row.Notes + '
'; } else if ( row.Notes != 'Forced Web: ' ) { row.Cause = row.Cause + '
' + row.Notes + '
'; }