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

Add missing message when cart is full on record view.

parent 02b60987
No related merge requests found
......@@ -178,6 +178,11 @@ VuFind.register('cart', function Cart() {
$parent.find('.cart-add').click(function cartAddClick() {
if(addItem(currentId, currentSource)) {
$parent.find('.cart-add,.cart-remove').toggleClass('hidden');
} else {
$parent.popover({content: VuFind.translate('bookbagFull')});
setTimeout(function recordCartFullHide() {
$parent.popover('hide');
}, 5000);
}
});
$parent.find('.cart-remove').click(function cartRemoveClick() {
......
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