From 17faec37a74ae9032c3bac8cb66094c4db7c152b Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Mon, 23 Jun 2014 10:31:09 -0400
Subject: [PATCH] Extra safety check.

---
 themes/bootstrap/js/cart.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/themes/bootstrap/js/cart.js b/themes/bootstrap/js/cart.js
index 695c3b91faa..64c42a96fb7 100644
--- a/themes/bootstrap/js/cart.js
+++ b/themes/bootstrap/js/cart.js
@@ -143,7 +143,9 @@ function registerUpdateCart($form) {
         $('#'+elId).data('popover').options.content = vufindString.bulk_noitems_advice;
       }
       $('#'+elId).popover('toggle');
-      clearTimeout(cartNotificationTimeout);
+      if (cartNotificationTimeout !== false) {
+          clearTimeout(cartNotificationTimeout);
+      }
       cartNotificationTimeout = setTimeout(function() {
         $('#'+elId).popover('hide');
       }, 5000);
-- 
GitLab