Lines 481-486
$(document).ready(function() {
Link Here
|
481 |
jQuery.removeCookie("search_path_code", { path: '/'}); |
481 |
jQuery.removeCookie("search_path_code", { path: '/'}); |
482 |
[% END %] |
482 |
[% END %] |
483 |
$('#advsearch form').submit(function() { |
483 |
$('#advsearch form').submit(function() { |
|
|
484 |
$('[name^="limit"]').each(function(){ |
485 |
if( $(this).val() == '' ){ |
486 |
$(this).prop("disabled","disabled"); |
487 |
} |
488 |
}); |
489 |
$(".search-term-row").each(function(){ |
490 |
if( $(this).find('input[name="q"]').val() == "" ){ |
491 |
$(this).find('input[name="q"]').prop("disabled","disabled"); |
492 |
$(this).find('select[name="op"]').prop("disabled","disabled"); |
493 |
$(this).find('select[name="idx"]').prop("disabled","disabled"); |
494 |
} |
495 |
}); |
484 |
form_serialized = $(this).serialize(); |
496 |
form_serialized = $(this).serialize(); |
485 |
jQuery.cookie("form_serialized", form_serialized,{ path: '/'}); |
497 |
jQuery.cookie("form_serialized", form_serialized,{ path: '/'}); |
486 |
form_serialized_limits = [ |
498 |
form_serialized_limits = [ |
487 |
- |
|
|