Skip to content
Snippets Groups Projects
Commit 17faec37 authored by Demian Katz's avatar Demian Katz
Browse files

Extra safety check.

parent 67e23e70
No related merge requests found
...@@ -143,7 +143,9 @@ function registerUpdateCart($form) { ...@@ -143,7 +143,9 @@ function registerUpdateCart($form) {
$('#'+elId).data('popover').options.content = vufindString.bulk_noitems_advice; $('#'+elId).data('popover').options.content = vufindString.bulk_noitems_advice;
} }
$('#'+elId).popover('toggle'); $('#'+elId).popover('toggle');
clearTimeout(cartNotificationTimeout); if (cartNotificationTimeout !== false) {
clearTimeout(cartNotificationTimeout);
}
cartNotificationTimeout = setTimeout(function() { cartNotificationTimeout = setTimeout(function() {
$('#'+elId).popover('hide'); $('#'+elId).popover('hide');
}, 5000); }, 5000);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment