From cdd8a328ac449a5569117ac936692f0fe90ee469 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 10 Aug 2009 13:54:48 -0500 Subject: [PATCH] Showing "more searches" menu options when JavaScript is disabled (Bug 3517) Signed-off-by: Galen Charlton --- koha-tmpl/opac-tmpl/prog/en/css/opac.css | 1 + .../prog/en/modules/opac-detail.tmpl | 28 +++++++++++++++---- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index 0a1d132fbe..0efb232ea3 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -1384,6 +1384,7 @@ div#menu li.active a:hover { padding : 3px; text-align : center; } +#furtherm { margin-top : .5em; } #export label, .detailtagcell label { display : block; diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl index 553c2725d0..b6465acca1 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -26,6 +26,22 @@ $(".tagbutton").click(KOHA.Tags.add_tag_button); $("#action").append("
  • "+_("Add to Your Cart")+"<\/a><\/li>"); }); + +YAHOO.util.Event.onContentReady("furtherm", function () { + $("#furtherm").css("display","block").css("visibility","hidden"); + $("#furthersearches").parent().show(); + var furthersearchesMenu = new YAHOO.widget.Menu("furtherm"); + furthersearchesMenu.render(); + furthersearchesMenu.cfg.setProperty("context", ["furthersearches", "tr", "br"]); + furthersearchesMenu.subscribe("beforeShow",positionfurthersearchesMenu); + furthersearchesMenu.subscribe("show", furthersearchesMenu.focus); + function positionfurthersearchesMenu() { + furthersearchesMenu.align("tr", "br"); + } + YAHOO.util.Event.addListener("furthersearches", "click", furthersearchesMenu.show, null, furthersearchesMenu); + YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionfurthersearchesMenu); + }); + //]]>