diff options
author | justdave%syndicomm.com <> | 2003-01-12 17:16:03 +0100 |
---|---|---|
committer | justdave%syndicomm.com <> | 2003-01-12 17:16:03 +0100 |
commit | aeec598412d3b247c9155cf97834dea503bd136c (patch) | |
tree | 220a7707ab38997cc877bd480254a93a48b8d6b6 | |
parent | 83f0e23415fc6bfe19168a89fe8603e587942667 (diff) | |
download | bugzilla-aeec598412d3b247c9155cf97834dea503bd136c.tar.gz bugzilla-aeec598412d3b247c9155cf97834dea503bd136c.tar.xz |
Bug 153874: Query in sidebar wasn't working
Patch by Peter Henderson (peterhenderson@usa.net)
r= kiko, a= justdave
-rw-r--r-- | quicksearch.js | 2 | ||||
-rw-r--r-- | template/en/default/sidebar.xul.tmpl | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/quicksearch.js b/quicksearch.js index ff43a5f1d..1eb627073 100644 --- a/quicksearch.js +++ b/quicksearch.js @@ -47,7 +47,7 @@ function do_shift(l) { function go_to (url) { if ( typeof sidebar != "undefined" && sidebar == 1 ) { - load_relative_url(url); + load_absolute_url(url); } else { document.location.href = url; } diff --git a/template/en/default/sidebar.xul.tmpl b/template/en/default/sidebar.xul.tmpl index 21a07c998..ad530cbb7 100644 --- a/template/en/default/sidebar.xul.tmpl +++ b/template/en/default/sidebar.xul.tmpl @@ -39,6 +39,10 @@ // Tell QuickSearch that the source of this is the sidebar var sidebar = 1; +function load_absolute_url( aAbsoluteURL ) { + _content.location = aAbsoluteURL; +} + function load_relative_url( aRelativeURL ) { aRelativeURL = '[% Param('urlbase') %]' + aRelativeURL; _content.location = aRelativeURL; |