Skip to content
Snippets Groups Projects
Commit 66e0510e authored by Chris Hallberg's avatar Chris Hallberg
Browse files

JS Checkstyles for cart.js

parent 308e84f4
Branches
Tags
No related merge requests found
......@@ -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;
......
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