зеркало из https://github.com/mozilla/pjs.git
Open a new window if one isn't around when users select the
``Search the Web'' menu item from the ``Search'' menu. b=83329; r=morse; sr=sfraser
This commit is contained in:
Родитель
72f7228397
Коммит
2cdccd4952
|
@ -152,9 +152,13 @@ function xlateURL(key)
|
||||||
|
|
||||||
function loadXURL(key)
|
function loadXURL(key)
|
||||||
{
|
{
|
||||||
debug_dump("loadXURL call with " + key + "\n");
|
debug_dump("loadXURL call with " + key + "\n");
|
||||||
|
|
||||||
window._content.location.href = xlateURL(key);
|
var url = xlateURL(key);
|
||||||
|
if (window._content)
|
||||||
|
window._content.location.href = url;
|
||||||
|
else
|
||||||
|
window.open(url); // on mac, there maybe no open windows: see bug 83329
|
||||||
}
|
}
|
||||||
|
|
||||||
loadDS();
|
loadDS();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче