зеркало из https://github.com/mozilla/pjs.git
Bug 24651. Add a navigator button to clear the location bar. Patch by erik@hensema.xs4all.nl, r=timeless,bzbarsky sr=alecf a=asa.
This commit is contained in:
Родитель
001495e402
Коммит
b78639757c
|
@ -601,6 +601,12 @@ function BrowserStop()
|
|||
}
|
||||
}
|
||||
|
||||
function clearLocationBar()
|
||||
{
|
||||
gURLBar.value = "";
|
||||
gURLBar.focus();
|
||||
}
|
||||
|
||||
function BrowserReload()
|
||||
{
|
||||
const reloadFlags = nsIWebNavigation.LOAD_FLAGS_NONE;
|
||||
|
|
|
@ -155,6 +155,9 @@ Contributor(s): ______________________________________. -->
|
|||
</hbox>
|
||||
|
||||
<hbox id="nav-bar-inner" flex="1">
|
||||
<toolbarbutton id="clear-button" oncommand="clearLocationBar();"
|
||||
tooltiptext="&clearButton.tooltip;"
|
||||
class="toolbar-button"/>
|
||||
<textbox id="urlbar" class="chromeclass-location" flex="1"
|
||||
type="autocomplete" searchSessions="history"
|
||||
timeout="50" maxrows="6" alwaysopenpopup="true"
|
||||
|
|
|
@ -188,6 +188,7 @@
|
|||
<!ENTITY reloadButton.tooltip "Reload current page">
|
||||
<!ENTITY stopButton.label "Stop">
|
||||
<!ENTITY stopButton.tooltip "Stop loading this page">
|
||||
<!ENTITY clearButton.tooltip "Clear the location bar">
|
||||
<!ENTITY searchButton.label "Search">
|
||||
<!ENTITY searchButton.tooltip "Type a word in the field to the left, then click Search">
|
||||
<!ENTITY goButton.label "Go">
|
||||
|
|
Загрузка…
Ссылка в новой задаче