From 58f4d220a50f569e7aad44457134a574bac77405 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 23 Dec 2013 12:49:21 +0100 Subject: [PATCH] Bug 10858: Don't use the cookie if the ft is disabled Content-Type: text/plain; charset=utf-8 Is the pref 'OpacBrowseResults' is off, the feature should be completly off. Signed-off-by: Marcel de Rooy --- .../opac-tmpl/prog/en/modules/opac-results.tt | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt index dc80036..ed91e13 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt @@ -363,6 +363,7 @@ $(document).ready(function(){ }); [% END %] + [% IF Koha.Preference('OpacBrowseResults') %] $("#bookbag_form").ready(function(){ $("#bookbag_form").unCheckCheckboxes(); var bibnums = getContextBiblioNumbers(); @@ -390,6 +391,7 @@ $(document).ready(function(){ var bibnums = getContextBiblioNumbers(); }); + [% END %] }); //]]> -- 1.7.7.6