allow keeping of sidebar query params if navbar query changes (closes #27)
This commit is contained in:
@@ -8,7 +8,11 @@ function do_search (event, tab) {
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
// each sidebar search form has a hidden copy of the main navbar search
|
// each sidebar search form has a hidden copy of the main navbar search
|
||||||
// query. on tab activation, copy this to all hidden sidebars.
|
// query. when the tab query takes place, copy the navbar locally, then
|
||||||
|
// replicate to all other tabs.
|
||||||
|
if ($('#nq').val()) {
|
||||||
|
$(form).find("input[name=q]").val( $('#nq').val() );
|
||||||
|
}
|
||||||
$('form').find("input[name=q]").each( function() {
|
$('form').find("input[name=q]").each( function() {
|
||||||
$(this).val( $(form).find("input[name=q]").val() );
|
$(this).val( $(form).find("input[name=q]").val() );
|
||||||
});
|
});
|
||||||
@@ -132,6 +136,7 @@ $(document).ready(function() {
|
|||||||
return process(data);
|
return process(data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
,minLength: 3
|
||||||
});
|
});
|
||||||
|
|
||||||
// activate tooltips
|
// activate tooltips
|
||||||
|
|||||||
Reference in New Issue
Block a user