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:
parent
a497000b98
commit
c69ef03ddd
@ -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));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user