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 <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-04-20 01:09:30 +02:00
parent a497000b98
commit c69ef03ddd
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -2486,7 +2486,7 @@ $(function () {
}, 250); }, 250);
}); });
$(document).on('mouseup', 'span.ajax_notification.dismissable', function () { $(document).on('mouseup', 'span.ajax_notification.dismissable', function (event) {
if (holdStarter && event.which === 1) { if (holdStarter && event.which === 1) {
clearTimeout(holdStarter); clearTimeout(holdStarter);
Functions.ajaxRemoveMessage($(this)); Functions.ajaxRemoveMessage($(this));