From 66e0510efda49f6bfe54b78670c003d5c1c1f1d8 Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Mon, 14 Mar 2016 16:43:33 -0400 Subject: [PATCH] JS Checkstyles for cart.js --- themes/bootstrap3/js/cart.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/themes/bootstrap3/js/cart.js b/themes/bootstrap3/js/cart.js index 51de6ed8533..a387bd7b02c 100644 --- a/themes/bootstrap3/js/cart.js +++ b/themes/bootstrap3/js/cart.js @@ -7,10 +7,6 @@ var _CART_COOKIE_DELIM = "\t"; var currentId,currentSource; var lastCartSubmit = false; -function updateCartCount() { - var items = getCartItems(); - $('#cartItems strong').html(items.length); -} function getCartItems() { var items = Cookies.getItem(_CART_COOKIE); if(items) { @@ -38,6 +34,11 @@ function getFullCartItems() { return full; } +function updateCartCount() { + var items = getCartItems(); + $('#cartItems strong').html(items.length); +} + function addItemToCart(id,source) { if(!source) { source = VuFind.defaultSearchBackend; -- GitLab