From eb4d364f1236a317926232b92f1218ff865cba6f Mon Sep 17 00:00:00 2001
From: simith <simith@inlibro.com>
Date: Wed, 3 Dec 2014 09:53:48 -0500
Subject: [PATCH] [PASSED QA] Fix Patch- Search boxes disappear when returning to advanced search

http://bugs.koha-community.org/show_bug.cgi?id=13307
Signed-off-by: Marc Veron <veron@veron.ch>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

http://bugs.koha-community.org/show_bug.cgi?id=13364
---
 .../bootstrap/en/modules/opac-advsearch.tt         |    4 ++--
 1 files 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 49d3198..97afcda 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt
@@ -416,12 +416,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 %]
     });
 
-- 
1.7.2.5