From f9763a8ec925b8256ccc82c47ec33010601ae1a6 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 30 Nov 2011 12:50:35 -0500 Subject: [PATCH] Bug 7280 - can't place hold without selecting on list JavaScript was looking for clicks on links with class "hold," and incorrectly triggering the check for checked checkboxes. Making the selection stricter lets the JS function as it should while allowing people to place individual holds directly. Signed-off-by: Chris Cormack Signed-off-by: Paul Poulain --- koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt index 528b8a739b..709a444cee 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt @@ -70,7 +70,7 @@ $(function() { $("a.print").show(); [% IF ( opacuserlogin ) %][% IF ( RequestOnOpac ) %]$("#placehold").html(""+_('Place Hold')+"<\/a>"); - $("a.hold").click(function(){ + $("#toolbar a.hold").click(function(){ holdSelections(); return false; });[% END %][% END %] -- 2.39.5