Bug 153874: Query in sidebar wasn't working

Patch by Peter Henderson (peterhenderson@usa.net) r= kiko, a= justdave
parent 83f0e234
...@@ -47,7 +47,7 @@ function do_shift(l) { ...@@ -47,7 +47,7 @@ function do_shift(l) {
function go_to (url) { function go_to (url) {
if ( typeof sidebar != "undefined" && sidebar == 1 ) { if ( typeof sidebar != "undefined" && sidebar == 1 ) {
load_relative_url(url); load_absolute_url(url);
} else { } else {
document.location.href = url; document.location.href = url;
} }
......
...@@ -39,6 +39,10 @@ ...@@ -39,6 +39,10 @@
// Tell QuickSearch that the source of this is the sidebar // Tell QuickSearch that the source of this is the sidebar
var sidebar = 1; var sidebar = 1;
function load_absolute_url( aAbsoluteURL ) {
_content.location = aAbsoluteURL;
}
function load_relative_url( aRelativeURL ) { function load_relative_url( aRelativeURL ) {
aRelativeURL = '[% Param('urlbase') %]' + aRelativeURL; aRelativeURL = '[% Param('urlbase') %]' + aRelativeURL;
_content.location = aRelativeURL; _content.location = aRelativeURL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment