Legacy markup in the script which generates the OPAC's Cart button
causes display problems in Chrome under the new HTML5 doctype.

This patch removes the extra markup, which has been unnecessary since
we changed the way the Cart and Lists buttons are displayed in Bug
7584.

To test, view the OPAC in several browsers, including a Chromium-based
browser (Specifically Chromium-based. It is not a WebKit-related bug).
The Cart button should display correctly with and without items in the
cart.
---
 .../opac-tmpl/prog/en/includes/doc-head-close.inc  |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc 
b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc
index 35884af..8c5ff1f 100644
--- a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc
+++ b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc
@@ -66,7 +66,7 @@
     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");
-       $("#cartDetails").ready(function(){ $("#cmspan").html("<a href=\"#\" 
id=\"cartmenulink\" class=\"\"><i><\/i><span><i><\/i><span><\/span><span 
id=\"carticon\"></span> "+_("Cart")+"<span 
id=\"basketcount\"><\/span><\/span><\/a>"); }); [% ELSE %][% IF ( 
virtualshelves ) %]
+    $("#cartDetails").ready(function(){ $("#cmspan").html("<a href=\"#\" 
id=\"cartmenulink\"><span id=\"carticon\"></span> "+_("Cart")+"<span 
id=\"basketcount\"><\/span><\/a>"); }); [% ELSE %][% IF ( virtualshelves ) %]
     var MSG_NO_RECORD_SELECTED = _("No item was selected");[% END %][% END %]
     [% IF ( opacuserlogin ) %][% IF ( TagsEnabled ) %]var MSG_TAGS_DISABLED = 
_("Sorry, tags are not enabled on this system.");
     var MSG_TAG_ALL_BAD = _("Error! Your tag was entirely markup code.  It was 
NOT added.  Please try again with plain text.");
-- 
1.7.9.5
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to