From d37e30e936af11b92c759df57356ac1ebbb327b4 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 28 Feb 2008 10:18:32 +1300 Subject: [PATCH] Further changes to use YUI buttons for cart and menu Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- koha-tmpl/opac-tmpl/prog/en/css/opac.css | 20 +++++++++++++++++++ .../prog/en/includes/doc-head-close.inc | 2 +- koha-tmpl/opac-tmpl/prog/en/js/script.js | 11 +--------- 3 files changed, 22 insertions(+), 11 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index 8cc4753e37..78451b6578 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -1305,6 +1305,26 @@ body #opac-main-search #cartmenulink.yui-button , body #opac-main-search #listsm margin-left : 1em; } +body #opac-main-search #cartmenulink.yui-button { + background-image : url(../../images/cart-button-background.gif); + background-position : top left; + background-repeat : repeat; +} + +body #opac-main-search #listsmenulink.yui-button { + background-image : url(../../images/lists-button-background.gif); + background-position : top left; + background-repeat : repeat; +} + +body #opac-main-search #cartmenulink.yui-button a { + margin-left : 3px; + padding-left : 25px; + background-image : url(../../images/cart2.gif); + background-repeat: no-repeat; + background-position: left; +} + #export { margin-top : .5em; background-color : #F3F3F3; 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 6cd88af790..38820be1a1 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 @@ -10,7 +10,7 @@ - + " /> diff --git a/koha-tmpl/opac-tmpl/prog/en/js/script.js b/koha-tmpl/opac-tmpl/prog/en/js/script.js index b296231379..493df31484 100644 --- a/koha-tmpl/opac-tmpl/prog/en/js/script.js +++ b/koha-tmpl/opac-tmpl/prog/en/js/script.js @@ -72,16 +72,7 @@ YAHOO.util.Event.onContentReady("listsmenu", function () { new YAHOO.widget.Button("searchsubmit"); new YAHOO.widget.Button("cartmenulink"); new YAHOO.widget.Button("listsmenulink"); - /* $('.btn').each(function(){ - var b = $(this); - var tt = b.text() || b.val(); - if ($(':submit,:button',this)) { - b = $('').insertAfter(this). addClass(this.className).attr('id',this.id); - $(this).remove(); - } - b.text('').css({cursor:'pointer'}). prepend('') - .append( $('').text(tt).append('') ); - }); */ + $("#cartmenulink").find("a").append(" 18"); $("#searchsubmit").click(function(){ $("#searchform").submit(); }) -- 2.39.5