From c69ef03ddd191b6658934ab101f64abab4db6c4f Mon Sep 17 00:00:00 2001 From: William Desportes Date: Tue, 20 Apr 2021 01:09:30 +0200 Subject: [PATCH] Fix JS error "event is not defined" Seems like in some cases the event is not defined, use the default format to ensure event is defined Signed-off-by: William Desportes --- js/src/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/functions.js b/js/src/functions.js index 82873e06c8..468dfe2960 100644 --- a/js/src/functions.js +++ b/js/src/functions.js @@ -2486,7 +2486,7 @@ $(function () { }, 250); }); - $(document).on('mouseup', 'span.ajax_notification.dismissable', function () { + $(document).on('mouseup', 'span.ajax_notification.dismissable', function (event) { if (holdStarter && event.which === 1) { clearTimeout(holdStarter); Functions.ajaxRemoveMessage($(this));