diff --git a/suite/browser/navigator.js b/suite/browser/navigator.js index f9d70613a60..95e5191a5d0 100644 --- a/suite/browser/navigator.js +++ b/suite/browser/navigator.js @@ -875,7 +875,7 @@ function createBrowserInstance() } } -function OpenSearch(tabName, searchStr) +function OpenSearch(tabName, forceDialogFlag, searchStr) { var searchMode = 0; var searchEngineURI = null; @@ -898,7 +898,7 @@ function OpenSearch(tabName, searchStr) defaultSearchURL = "http://search.netscape.com/cgi-bin/search?search="; } - if (searchMode == 1) + if ((searchMode == 1) || (forceDialogFlag == true)) { window.openDialog("chrome://search/content/search.xul", "SearchWindow", "dialog=no,close,chrome,resizable", tabName, searchStr); } diff --git a/suite/browser/navigator.xul b/suite/browser/navigator.xul index bf64f8cec5f..56fef745b1f 100644 --- a/suite/browser/navigator.xul +++ b/suite/browser/navigator.xul @@ -356,7 +356,7 @@ Contributor(s): ______________________________________. --> @@ -378,7 +378,7 @@ Contributor(s): ______________________________________. --> + onclick="OpenSearch('internet', false, document.getElementById('urlbar').value);"/> diff --git a/suite/browser/navigatorOverlay.xul b/suite/browser/navigatorOverlay.xul index fad9d316a7b..07efef96998 100644 --- a/suite/browser/navigatorOverlay.xul +++ b/suite/browser/navigatorOverlay.xul @@ -354,13 +354,13 @@ Contributor(s): ______________________________________. --> + oncommand="OpenSearch('find', true, null);"/> + oncommand="OpenSearch('internet', true, null);"/> + oncommand="OpenSearch('mail', true, null);"/> + oncommand="OpenSearch('addressbook', true, null);"/> diff --git a/xpfe/browser/resources/content/navigator.js b/xpfe/browser/resources/content/navigator.js index f9d70613a60..95e5191a5d0 100644 --- a/xpfe/browser/resources/content/navigator.js +++ b/xpfe/browser/resources/content/navigator.js @@ -875,7 +875,7 @@ function createBrowserInstance() } } -function OpenSearch(tabName, searchStr) +function OpenSearch(tabName, forceDialogFlag, searchStr) { var searchMode = 0; var searchEngineURI = null; @@ -898,7 +898,7 @@ function OpenSearch(tabName, searchStr) defaultSearchURL = "http://search.netscape.com/cgi-bin/search?search="; } - if (searchMode == 1) + if ((searchMode == 1) || (forceDialogFlag == true)) { window.openDialog("chrome://search/content/search.xul", "SearchWindow", "dialog=no,close,chrome,resizable", tabName, searchStr); } diff --git a/xpfe/browser/resources/content/navigator.xul b/xpfe/browser/resources/content/navigator.xul index bf64f8cec5f..56fef745b1f 100644 --- a/xpfe/browser/resources/content/navigator.xul +++ b/xpfe/browser/resources/content/navigator.xul @@ -356,7 +356,7 @@ Contributor(s): ______________________________________. --> @@ -378,7 +378,7 @@ Contributor(s): ______________________________________. --> + onclick="OpenSearch('internet', false, document.getElementById('urlbar').value);"/> diff --git a/xpfe/browser/resources/content/navigatorOverlay.xul b/xpfe/browser/resources/content/navigatorOverlay.xul index fad9d316a7b..07efef96998 100644 --- a/xpfe/browser/resources/content/navigatorOverlay.xul +++ b/xpfe/browser/resources/content/navigatorOverlay.xul @@ -354,13 +354,13 @@ Contributor(s): ______________________________________. --> + oncommand="OpenSearch('find', true, null);"/> + oncommand="OpenSearch('internet', true, null);"/> + oncommand="OpenSearch('mail', true, null);"/> + oncommand="OpenSearch('addressbook', true, null);"/>