From 35ad5e837eb01a9ccde028049480cc3ddc4cabc2 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 7 Feb 2008 00:11:44 -0600 Subject: [PATCH] Re-marking basket count with spans to avoid validation errors Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- koha-tmpl/opac-tmpl/prog/en/css/opac.css | 20 +++++++++++++++---- .../opac-tmpl/prog/en/includes/masthead.inc | 2 +- koha-tmpl/opac-tmpl/prog/en/js/basket.js | 2 +- koha-tmpl/opac-tmpl/prog/en/js/script.js | 3 ++- 4 files changed, 20 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index 02fc171d88..2dba97d5e9 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -1183,20 +1183,32 @@ a#cartmenulink, a#cartmenulink:hover { position : relative; } -#cartmenulink.btn div { +#cartmenulink.btn span#basket { background-image : none; display : inline; + height : auto; + position : relative; + margin : 0; + padding : 0; + left : auto; + right : auto; + top : auto; } -#cartmenulink.btn div div { +#cartmenulink.btn span#basket span { background-image : none; background-color : #E6FCB7; color : #000; display : inline; font-size : 80%; font-weight : normal; - margin : 0 .5em; - padding : 0 .3em; + height : auto; + left : auto; + margin : 0 .5em 0 .5em; + padding : 0 .3em 0 .3em; + position : relative; + right : auto; + top : auto; } #cartmenulink.btn img { diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc index 8efe8b97c4..858d375b5f 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc @@ -62,7 +62,7 @@ -Cart
Lists +CartLists diff --git a/koha-tmpl/opac-tmpl/prog/en/js/basket.js b/koha-tmpl/opac-tmpl/prog/en/js/basket.js index 3c9e20c3cc..5505879b69 100644 --- a/koha-tmpl/opac-tmpl/prog/en/js/basket.js +++ b/koha-tmpl/opac-tmpl/prog/en/js/basket.js @@ -358,7 +358,7 @@ function showLess() { function updateBasket(updated_value,target) { if(typeof document.getElementById != "undefined") { if(target.getElementById('basket')){ - target.getElementById('basket').innerHTML = "
"+updated_value+"
"; + target.getElementById('basket').innerHTML = ""+updated_value+""; } if(target.getElementById('cartDetails')){ target.getElementById('cartDetails').innerHTML = _("Your cart contains ")+updated_value+_(" items"); diff --git a/koha-tmpl/opac-tmpl/prog/en/js/script.js b/koha-tmpl/opac-tmpl/prog/en/js/script.js index 76dfb1021f..018473f9f4 100644 --- a/koha-tmpl/opac-tmpl/prog/en/js/script.js +++ b/koha-tmpl/opac-tmpl/prog/en/js/script.js @@ -83,7 +83,8 @@ YAHOO.util.Event.onContentReady("listsmenu", function () { }) $("#cartmenulink").find("i:first").before("\"\""); - $("#cartmenulink").find("i:last").before("
"); + $("#cartmenulink").find("i:last").before(""); + $("#listsmenulink").find("i:last").before("\"\""); if(basketcount){ updateBasket(basketcount,document) } -- 2.39.5