release 2.010004

This commit is contained in:
Oliver Gorwits
2013-07-24 23:48:48 +01:00
parent eee6598c95
commit 5f9065b753
5 changed files with 22 additions and 8 deletions

View File

@@ -16,12 +16,14 @@ function do_search (event, tab) {
// each sidebar search form has a hidden copy of the main navbar search
// 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() );
if (path != 'report' && path != 'admin') {
if ($('#nq').val()) {
$(form).find("input[name=q]").val( $('#nq').val() );
}
$('form').find("input[name=q]").each( function() {
$(this).val( $(form).find("input[name=q]").val() );
});
}
$('form').find("input[name=q]").each( function() {
$(this).val( $(form).find("input[name=q]").val() );
});
// hide or show sidebars depending on previous state,
// and whether the sidebar contains any content (detected by TT)