mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
r=timeless, sr=mscott, a=bsmedberg Unnecessary requirement that two strings be the same - pull button names from properties only, not DTD and properties
This commit is contained in:
parent
779f13f5f7
commit
856a435f18
@ -77,6 +77,8 @@ function searchOnLoad()
|
||||
initializeSearchWindowWidgets();
|
||||
|
||||
gSearchBundle = document.getElementById("bundle_search");
|
||||
gSearchStopButton.setAttribute("label", gSearchBundle.getString("labelForSearchButton"));
|
||||
gSearchStopButton.setAttribute("accesskey", gSearchBundle.getString("accesskeyForSearchButton"));
|
||||
gAddressBookBundle = document.getElementById("bundle_addressBook");
|
||||
gSearchSession = Components.classes[searchSessionContractID].createInstance(Components.interfaces.nsIMsgSearchSession);
|
||||
|
||||
|
@ -110,7 +110,7 @@
|
||||
</menupopup>
|
||||
</menulist>
|
||||
<spacer flex="10"/>
|
||||
<button label="&searchButton.label;" id="search-button" oncommand="onSearchButton(event);" default="true" accesskey="&searchButton.accesskey;"/>
|
||||
<button id="search-button" oncommand="onSearchButton(event);" default="true" />
|
||||
</hbox>
|
||||
<hbox align="center">
|
||||
<spacer flex="1"/>
|
||||
|
@ -111,7 +111,7 @@
|
||||
<menupopup class="searchPopup" oncommand="updateSearchFolderPicker(this.getAttribute('uri'));"/>
|
||||
</menulist>
|
||||
<spacer flex="10"/>
|
||||
<button label="&searchButton.label;" id="search-button" oncommand="onSearchButton(event);" default="true" accesskey="&searchButton.accesskey;"/>
|
||||
<button id="search-button" oncommand="onSearchButton(event);" default="true"/>
|
||||
|
||||
</hbox>
|
||||
|
||||
|
@ -3,8 +3,6 @@
|
||||
<!ENTITY searchHeading.accesskey "h">
|
||||
<!ENTITY searchSubfolders.label "Search subfolders">
|
||||
<!ENTITY searchSubfolders.accesskey "e">
|
||||
<!ENTITY searchButton.label "Search">
|
||||
<!ENTITY searchButton.accesskey "S">
|
||||
<!ENTITY resetButton.label "Clear">
|
||||
<!ENTITY resetButton.accesskey "C">
|
||||
<!ENTITY optionsButton.label "Options">
|
||||
|
@ -80,6 +80,8 @@ function searchOnLoad()
|
||||
initializeSearchWindowWidgets();
|
||||
|
||||
gSearchBundle = document.getElementById("bundle_search");
|
||||
gSearchStopButton.setAttribute("label", gSearchBundle.getString("labelForSearchButton"));
|
||||
gSearchStopButton.setAttribute("accesskey", gSearchBundle.getString("accesskeyForSearchButton"));
|
||||
gAddressBookBundle = document.getElementById("bundle_addressBook");
|
||||
gSearchSession = Components.classes[searchSessionContractID].createInstance(Components.interfaces.nsIMsgSearchSession);
|
||||
|
||||
|
@ -104,7 +104,7 @@
|
||||
</menupopup>
|
||||
</menulist>
|
||||
<spacer flex="10"/>
|
||||
<button label="&searchButton.label;" id="search-button" oncommand="onSearchButton(event);" default="true" accesskey="&searchButton.accesskey;"/>
|
||||
<button id="search-button" oncommand="onSearchButton(event);" default="true"/>
|
||||
</hbox>
|
||||
<hbox align="center">
|
||||
<spacer flex="1"/>
|
||||
|
@ -255,6 +255,8 @@ function searchOnLoad()
|
||||
CreateMessenger();
|
||||
|
||||
gSearchBundle = document.getElementById("bundle_search");
|
||||
gSearchStopButton.setAttribute("label", gSearchBundle.getString("labelForSearchButton"));
|
||||
gSearchStopButton.setAttribute("accesskey", gSearchBundle.getString("accesskeyForSearchButton"));
|
||||
gMessengerBundle = document.getElementById("bundle_messenger");
|
||||
setupDatasource();
|
||||
setupSearchListener();
|
||||
|
@ -107,7 +107,7 @@
|
||||
<menupopup class="searchPopup" oncommand="updateSearchFolderPicker(this.getAttribute('uri'));"/>
|
||||
</menulist>
|
||||
<spacer flex="10"/>
|
||||
<button label="&searchButton.label;" id="search-button" oncommand="onSearchButton(event);" default="true" accesskey="&searchButton.accesskey;"/>
|
||||
<button id="search-button" oncommand="onSearchButton(event);" default="true"/>
|
||||
|
||||
</hbox>
|
||||
<hbox align="center">
|
||||
|
@ -4,8 +4,6 @@
|
||||
<!ENTITY searchHeading.accesskey "h">
|
||||
<!ENTITY searchSubfolders.label "Search subfolders">
|
||||
<!ENTITY searchSubfolders.accesskey "e">
|
||||
<!ENTITY searchButton.label "Search">
|
||||
<!ENTITY searchButton.accesskey "S">
|
||||
<!ENTITY resetButton.label "Clear">
|
||||
<!ENTITY resetButton.accesskey "C">
|
||||
<!ENTITY helpButton.label "Help">
|
||||
|
Loading…
x
Reference in New Issue
Block a user