From 5bd71cc789275572b0fc10be0a8f85ca46b19f8c 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 Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- 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 6baedf9835..20d92f78d9 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 03e8e9e9b9..c642f947bc 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/basket.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/basket.js @@ -410,10 +410,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.39.5