From e1ea445f6501cf715a80a6d920bbfcf046389544 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 20 Feb 2014 16:41:56 +0100 Subject: [PATCH] Bug 10858: follow-up Don't use the cookie if the ft is disabled Content-Type: text/plain; charset=utf-8 Signed-off-by: Marcel de Rooy --- .../opac-tmpl/bootstrap/en/modules/opac-results.tt | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 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 8470911..f0863d3 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -162,7 +162,9 @@ Tag status here. [% END %] - Browse selected records + [% IF Koha.Preference('OpacBrowseResults') %] + Browse selected records + [% END %] @@ -670,11 +672,13 @@ $(document).ready(function(){ [% END %] $(".cb").change(function(){ - if ( $(this).is(':checked') == true ) { - addBibToContext( $(this).val() ); - } else { - delBibToContext( $(this).val() ); - } + [% IF Koha.Preference('OpacBrowseResults') %] + if ( $(this).is(':checked') == true ) { + addBibToContext( $(this).val() ); + } else { + delBibToContext( $(this).val() ); + } + [% END %] enableCheckboxActions(); }); $(".details_link a").click(function(e) { -- 1.7.7.6