diff --git a/themes/bootstrap3/js/cart.js b/themes/bootstrap3/js/cart.js index d7aef5f17e4d7511887aefc63358fff2a0c0bf4a..f31b2019df17bd02b9fb3bfcb140c5a0b029dcfe 100644 --- a/themes/bootstrap3/js/cart.js +++ b/themes/bootstrap3/js/cart.js @@ -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() {