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.
---
.../opac-tmpl/prog/en/modules/opac-shelves.tt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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 528b8a7..709a444 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("<a href=\"#\" class=\"hold tag_hides\">"+_('Place
Hold')+"<\/a>");
- $("a.hold").click(function(){
+ $("#toolbar a.hold").click(function(){
holdSelections();
return false;
});[% END %][% END %]
--
1.7.3
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/