From 35d1e199b334751d36640c36e3a7709a2252faff Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 11 Feb 2013 08:19:43 -0500 Subject: [PATCH] Bug 9583 - OPAC cart button display problem in Chromium 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. Signed-off-by: Bernardo Gonzalez Kriegel Comment: Works great, back to normal. Tested in windows (chrome, firefox, opera) and linux (chrome, chromium) Signed-off-by: Katrin Fischer Tested with Chromium and Firefox in Ubuntu. No regression found and display is correct now. Signed-off-by: Jared Camins-Esakov Signed-off-by: Chris Cormack --- koha-tmpl/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 1bc9eb3462..7ac03925f2 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 @@ -64,7 +64,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("<\/i><\/i><\/span> "+_("Cart")+"<\/span><\/span><\/a>"); }); [% ELSE %][% IF ( virtualshelves ) %] + $("#cartDetails").ready(function(){ $("#cmspan").html(" "+_("Cart")+"<\/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."); -- 2.39.5