diff --git a/themes/finc-accessibility/js/cart.js b/themes/finc-accessibility/js/cart.js index 9fc90e6810a59fd411c5861d382083f1672054af..4fe3d72471d57e740a526e05c77d7bc29d40801a 100644 --- a/themes/finc-accessibility/js/cart.js +++ b/themes/finc-accessibility/js/cart.js @@ -214,9 +214,16 @@ VuFind.register('cart', function Cart() { /* #20374 set focus - END*/ } else { $this.popover({content: VuFind.translate('bookbagFull')}); + if ($this.find('.cart-link-label').length) { + $this.find('.cart-link-label') + .append('<span class="bookbag-full-hint sr-only">' + VuFind.translate('bookbagFull') + '</span>'); + } setTimeout(function recordCartFullHide() { $this.popover('hide'); }, 5000); + setTimeout(function recordCartFullHintRemove() { + $('.bookbag-full-hint').remove(); + }, 10000); } }); $this.find('.cart-remove').click(function cartRemoveClick(e) {