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 <veron@veron.ch>

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

http://bugs.koha-community.org/show_bug.cgi?id=13364
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
simith 2014-12-03 09:53:48 -05:00 committed by Tomas Cohen Arazi
parent f94d4526e5
commit 90f6f143c7
1 changed files with 2 additions and 2 deletions

View File

@ -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 %]
});