зеркало из https://github.com/mozilla/pjs.git
Bug 153874: Query in sidebar wasn't working
Patch by Peter Henderson (peterhenderson@usa.net) r= kiko, a= justdave
This commit is contained in:
Родитель
61c42ca1c3
Коммит
ec79afebbb
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче