Skip to content
Snippets Groups Projects
Commit 8dbe15b3 authored by Chris Hallberg's avatar Chris Hallberg Committed by André Lahmann
Browse files

JS Checkstyles for cart.js

parent 7cb0b083
No related merge requests found
...@@ -7,10 +7,6 @@ var _CART_COOKIE_DELIM = "\t"; ...@@ -7,10 +7,6 @@ var _CART_COOKIE_DELIM = "\t";
var currentId,currentSource; var currentId,currentSource;
var lastCartSubmit = false; var lastCartSubmit = false;
function updateCartCount() {
var items = getCartItems();
$('#cartItems strong').html(items.length);
}
function getCartItems() { function getCartItems() {
var items = Cookies.getItem(_CART_COOKIE); var items = Cookies.getItem(_CART_COOKIE);
if(items) { if(items) {
...@@ -38,6 +34,11 @@ function getFullCartItems() { ...@@ -38,6 +34,11 @@ function getFullCartItems() {
return full; return full;
} }
function updateCartCount() {
var items = getCartItems();
$('#cartItems strong').html(items.length);
}
function addItemToCart(id,source) { function addItemToCart(id,source) {
if(!source) { if(!source) {
source = VuFind.defaultSearchBackend; source = VuFind.defaultSearchBackend;
......
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