From 8f23e21f3da4ad20970dc2716dcbc97449281953 Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Sun, 30 Sep 2018 16:22:10 +0000 Subject: [PATCH] Bug 21174: Removed MSG_IN_YOUR_CART and its usage in OPAC JS The 'Items in your cart' message is obsolete with the cart dropdown box being removed. Therefore the assignment of this text into the MSG_IN_YOUR_CART variable (which is done in the opac-bottom.inc), and the use of the MSG_IN_YOUR_CART variable in the updateBasket() function (in the OPAC's basket.js) has been removed. Sponsored-By: Toi Ohomai Institute of Technology, New Zealand --- koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc | 1 - koha-tmpl/opac-tmpl/bootstrap/js/basket.js | 2 -- 2 files changed, 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc index ab7eb2c..824616b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc @@ -156,7 +156,6 @@ $.widget.bridge('uitooltip', $.ui.tooltip); var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your cart?"); var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?"); var MSG_ITEM_IN_CART = _("In your cart"); - var MSG_IN_YOUR_CART = _("Items in your cart: "); var MSG_ITEM_NOT_IN_CART = _("Add to your cart"); [% END %] [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/basket.js b/koha-tmpl/opac-tmpl/bootstrap/js/basket.js index 62dd99e..58986a9 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/basket.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/basket.js @@ -407,10 +407,8 @@ function updateBasket(updated_value,target) { } if(target){ target.$('#basketcount').html(bcount); - target.$('.cart-message').html(MSG_IN_YOUR_CART+updated_value); } else { $('#basketcount').html(bcount); - $('.cart-message').html(MSG_IN_YOUR_CART+updated_value); } } -- 2.1.4