Lines 482-488
$(document).ready(function() {
Link Here
|
482 |
//Clear all form cookies |
482 |
//Clear all form cookies |
483 |
jQuery.removeCookie("form_serialized", { path: '/'}); |
483 |
jQuery.removeCookie("form_serialized", { path: '/'}); |
484 |
jQuery.removeCookie("form_serialized_limits", { path: '/'}); |
484 |
jQuery.removeCookie("form_serialized_limits", { path: '/'}); |
485 |
jQuery.removeCookie("num_paragraph", { path: '/'}); |
|
|
486 |
jQuery.removeCookie("search_path_code", { path: '/'}); |
485 |
jQuery.removeCookie("search_path_code", { path: '/'}); |
487 |
[% END %] |
486 |
[% END %] |
488 |
$('#advsearch form').submit(function() { |
487 |
$('#advsearch form').submit(function() { |
Lines 508-523
$(document).ready(function() {
Link Here
|
508 |
]; |
507 |
]; |
509 |
jQuery.cookie("form_serialized_limits", form_serialized_limits,{ path: '/'}); |
508 |
jQuery.cookie("form_serialized_limits", form_serialized_limits,{ path: '/'}); |
510 |
[% IF ( expanded_options ) %] |
509 |
[% IF ( expanded_options ) %] |
511 |
var numPar = $("#booleansearch fieldset p").size(); |
|
|
512 |
if (numPar > [% search_boxes_count | html %]){ |
513 |
jQuery.cookie("num_paragraph", numPar,{ path: '/'}); |
514 |
}else{ |
515 |
jQuery.removeCookie("num_paragraph", { path: '/'}); |
516 |
} |
517 |
jQuery.cookie("search_path_code", 'exs',{ path: '/'}); |
510 |
jQuery.cookie("search_path_code", 'exs',{ path: '/'}); |
518 |
[% ELSE %] |
511 |
[% ELSE %] |
519 |
jQuery.cookie("search_path_code", 'ads',{ path: '/'}); |
512 |
jQuery.cookie("search_path_code", 'ads',{ path: '/'}); |
520 |
jQuery.removeCookie("num_paragraph", { path: '/'}); |
|
|
521 |
[% END %] |
513 |
[% END %] |
522 |
}); |
514 |
}); |
523 |
|
515 |
|