From 500c0ca565dc887787064eba88764892f7f44ae6 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 7 Feb 2008 00:11:41 -0600 Subject: [PATCH] Cart and lists icon placement Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc | 1 - koha-tmpl/opac-tmpl/prog/en/js/script.js | 11 ++++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc index 1334b319de..784eb1b2a2 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc @@ -68,7 +68,6 @@ - diff --git a/koha-tmpl/opac-tmpl/prog/en/js/script.js b/koha-tmpl/opac-tmpl/prog/en/js/script.js index b390a501b9..aa70177f18 100644 --- a/koha-tmpl/opac-tmpl/prog/en/js/script.js +++ b/koha-tmpl/opac-tmpl/prog/en/js/script.js @@ -66,7 +66,9 @@ YAHOO.util.Event.onContentReady("changelanguage", function () { YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionoMenu); }); YAHOO.util.Event.onContentReady("listsmenu", function () { - + $("#listsmenu").css("display","block").css("visibility","hidden"); + $("#cartDetails").css("display","block").css("visibility","hidden"); + $('.btn').each(function(){ var b = $(this); var tt = b.text() || b.val(); @@ -74,9 +76,12 @@ YAHOO.util.Event.onContentReady("listsmenu", function () { b = $('').insertAfter(this). addClass(this.className).attr('id',this.id); $(this).remove(); } - b.text('').css({cursor:'pointer'}). prepend('').append($(''). - text(tt).append('')); + b.text('').css({cursor:'pointer'}). prepend('') + .append( $('').text(tt).append('') ); }); + + $("#cartmenulink").find("i:first").before("\"\""); + $("#listsmenulink").find("i:last").before("\"\""); var listMenu = new YAHOO.widget.Menu("listsmenu", { lazyload: true }); listMenu.render(); -- 2.39.5