From 90f6f143c7ea2b3556fd71ce0cca493d6de8fdf8 Mon Sep 17 00:00:00 2001 From: simith Date: Wed, 3 Dec 2014 09:53:48 -0500 Subject: [PATCH] Bug 13307: Fix search boxes disappearing when returning to advanced search http://bugs.koha-community.org/show_bug.cgi?id=13307 Signed-off-by: Marc Veron Signed-off-by: Kyle M Hall http://bugs.koha-community.org/show_bug.cgi?id=13364 Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt index df43c166ad..3b93bb8581 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt @@ -423,12 +423,12 @@ $(document).ready(function() { if (numPar > [% search_boxes_count %]){ jQuery.cookie("num_paragraph", numPar,{ path: '/'}); }else{ - jQuery.cookie("num_paragraph", null,{ path: '/'}); + jQuery.removeCookie("num_paragraph", { path: '/'}); } jQuery.cookie("search_path_code", 'exs',{ path: '/'}); [% ELSE %] jQuery.cookie("search_path_code", 'ads',{ path: '/'}); - jQuery.cookie("num_paragraph", null,{ path: '/'}); + jQuery.removeCookie("num_paragraph", { path: '/'}); [% END %] }); -- 2.39.5