From b710dde0a91399c96a81e910d2459412a8e6acfc Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 23 Feb 2010 09:26:04 -0500 Subject: [PATCH] Fix for Bug 4167, Tag link styled incorrectly on Cart popup - Removing DOM creation of tag and hold links: if the Cart is working, the user must have JavaScript enabled. Therefore we can assume tagging and holds will work - Conditionally displaying some JavaScript based on whether tagging or placing holds is allowed Signed-off-by: Galen Charlton --- .../prog/en/modules/opac-basket.tmpl | 33 ++++++++----------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tmpl index 59691c39b4..78bb779935 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tmpl @@ -21,7 +21,7 @@ $(document).ready(function() } ); - + var MSG_NO_TAG_SPECIFIED = _("No tag was specified."); function tagSelected() { @@ -67,7 +67,7 @@ function tagAdded() { KOHA.Tags.add_multitags_button(bibs, tag); return false; } - + $(document).ready(function(){ $("#CheckAll").click(function(){ var checked = []; @@ -87,23 +87,15 @@ function tagAdded() { ); return false; }); - - $(".holdsep").text("| "); - $(".hold").text(_("Place Hold")); - - - $(".tagsep").text("| "); - $("#tagsel_tag").text(_("Tag")); $("#tagsel_button").click(function(){ tagAdded(); return false; }); - }); - + function holdSel() { var items = document.getElementById('records').value; if (items) { @@ -112,7 +104,7 @@ function tagAdded() { alert(MSG_NO_RECORD_SELECTED); } } - + //]]> @@ -143,10 +135,10 @@ function tagAdded() { | Add to a list - - - - + + | Place hold + + | Tag