This commit is contained in:
rjc%netscape.com 1999-08-19 20:00:43 +00:00
Родитель f3247e904e
Коммит bd3f01c11f
5 изменённых файлов: 24 добавлений и 12 удалений

Просмотреть файл

@ -494,9 +494,11 @@ function UpdateBookmarksLastVisitiedDate(event)
RefreshUrlbar();
}
function OpenSearch(tabName)
function OpenSearch(tabName, searchStr)
{
window.openDialog("resource:/res/samples/search.xul", "SearchWindow", "dialog=no,close,chrome,resizable", tabName);
dump("OpenSearch searchStr: '" + searchStr + "'\n\n");
window.openDialog("resource:/res/samples/search.xul", "SearchWindow", "dialog=no,close,chrome,resizable", tabName, searchStr);
}
function BrowserNewWindow()

Просмотреть файл

@ -323,10 +323,10 @@ Contributor(s): ______________________________________. -->
<menuitem value="&appSpecificCmd.label;" onaction="BrowserReload();"/>
<menuitem value="&appSpecificCmd.label;" onaction="BrowserReload();"/>
<menuseparator />
<menuitem value="&searchBookmarksHistoryCmd.label;" onaction="OpenSearch('find');"/>
<menuitem value="&searchInternetCmd.label;" onaction="OpenSearch('internet');"/>
<menuitem value="&searchAllMailCmd.label;" onaction="OpenSearch('mail');"/>
<menuitem value="&searchAddressbookCmd.label;" onaction="OpenSearch('addressbook');"/>
<menuitem value="&searchBookmarksHistoryCmd.label;" onaction="OpenSearch('find', null);"/>
<menuitem value="&searchInternetCmd.label;" onaction="OpenSearch('internet', null);"/>
<menuitem value="&searchAllMailCmd.label;" onaction="OpenSearch('mail', null);"/>
<menuitem value="&searchAddressbookCmd.label;" onaction="OpenSearch('addressbook', null);"/>
<menuseparator />
<menuitem value="&searchComputerCmd.label;" onaction="BrowserReload();"/>
</menupopup>
@ -499,6 +499,8 @@ Contributor(s): ______________________________________. -->
<spring flex="100%"/>
</box>
<titledbutton id="search-button" align="top" value="Search" onclick="OpenSearch('internet', document.getElementById('urlbar').value);" />
<titledbutton id="print-button" align="top" value="&printButton.label;"
onclick="BrowserPrint()">
<observes element="canPrint" attribute="disabled"/>

Просмотреть файл

@ -494,9 +494,11 @@ function UpdateBookmarksLastVisitiedDate(event)
RefreshUrlbar();
}
function OpenSearch(tabName)
function OpenSearch(tabName, searchStr)
{
window.openDialog("resource:/res/samples/search.xul", "SearchWindow", "dialog=no,close,chrome,resizable", tabName);
dump("OpenSearch searchStr: '" + searchStr + "'\n\n");
window.openDialog("resource:/res/samples/search.xul", "SearchWindow", "dialog=no,close,chrome,resizable", tabName, searchStr);
}
function BrowserNewWindow()

Просмотреть файл

@ -323,10 +323,10 @@ Contributor(s): ______________________________________. -->
<menuitem value="&appSpecificCmd.label;" onaction="BrowserReload();"/>
<menuitem value="&appSpecificCmd.label;" onaction="BrowserReload();"/>
<menuseparator />
<menuitem value="&searchBookmarksHistoryCmd.label;" onaction="OpenSearch('find');"/>
<menuitem value="&searchInternetCmd.label;" onaction="OpenSearch('internet');"/>
<menuitem value="&searchAllMailCmd.label;" onaction="OpenSearch('mail');"/>
<menuitem value="&searchAddressbookCmd.label;" onaction="OpenSearch('addressbook');"/>
<menuitem value="&searchBookmarksHistoryCmd.label;" onaction="OpenSearch('find', null);"/>
<menuitem value="&searchInternetCmd.label;" onaction="OpenSearch('internet', null);"/>
<menuitem value="&searchAllMailCmd.label;" onaction="OpenSearch('mail', null);"/>
<menuitem value="&searchAddressbookCmd.label;" onaction="OpenSearch('addressbook', null);"/>
<menuseparator />
<menuitem value="&searchComputerCmd.label;" onaction="BrowserReload();"/>
</menupopup>
@ -499,6 +499,8 @@ Contributor(s): ______________________________________. -->
<spring flex="100%"/>
</box>
<titledbutton id="search-button" align="top" value="Search" onclick="OpenSearch('internet', document.getElementById('urlbar').value);" />
<titledbutton id="print-button" align="top" value="&printButton.label;"
onclick="BrowserPrint()">
<observes element="canPrint" attribute="disabled"/>

Просмотреть файл

@ -29,6 +29,10 @@ titledbutton#stop-button {
list-style-image:url(resource:/res/toolbar/TB_Stop.gif);
}
titledbutton#search-button {
list-style-image:url(resource:/res/toolbar/TB_Reload.gif);
}
titledbutton#reload-button {
list-style-image:url(resource:/res/toolbar/TB_Reload.gif);
}