From a1b70c46d5801854c905b0b051e3d97e0fe4b3ab Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 19 Feb 2014 11:22:04 +0100 Subject: [PATCH] Bug 10858: FIX the "Browse selected" link Content-Type: text/plain; charset=utf-8 It should be updated on checkbox changes. Signed-off-by: Marcel de Rooy --- .../opac-tmpl/bootstrap/en/modules/opac-results.tt | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt index 40a687d..8470911 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -669,7 +669,7 @@ $(document).ready(function(){ }); [% END %] - $(".cb").click(function(){ + $(".cb").change(function(){ if ( $(this).is(':checked') == true ) { addBibToContext( $(this).val() ); } else { @@ -677,6 +677,14 @@ $(document).ready(function(){ } enableCheckboxActions(); }); + $(".details_link a").click(function(e) { + if ( $(this).hasClass("disabled") == true ) { + e.preventDefault(); + alert(MSG_NO_RECORD_SELECTED); + return false; + } + }); + enableCheckboxActions(); $("#bookbag_form").ready(function(){ -- 1.7.7.6