зеркало из https://github.com/mozilla/pjs.git
Changes the gray searchbar text to just show the engine name without "Search",
and updates the tooltip text (where applicable) to read "Search using _____". bug=337106 sr=mconnor uir=beltzner
This commit is contained in:
Родитель
ff440c16df
Коммит
86fc461833
|
@ -541,8 +541,6 @@
|
|||
<method name="_displayCurrentEngine">
|
||||
<body><![CDATA[
|
||||
var searchbar = this._getParentSearchbar();
|
||||
var newValue = searchbar._stringBundle.getFormattedString(
|
||||
"searchbox_hint", [searchbar.currentEngine.name]);
|
||||
|
||||
// This section is a wee bit hacky; without the timeout, the CSS
|
||||
// style corresponding to the "empty" attribute doesn't kick in
|
||||
|
@ -553,7 +551,7 @@
|
|||
var searchTextbox = this;
|
||||
setTimeout(function() {
|
||||
if (searchbar.getAttribute("empty") == "true")
|
||||
searchTextbox.value = newValue;
|
||||
searchTextbox.value = searchbar.currentEngine.name;
|
||||
}, 0);
|
||||
]]></body>
|
||||
</method>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
searchtip=Search %S
|
||||
searchbox_hint=%S Search
|
||||
searchtip=Search using %S
|
||||
|
||||
cmd_clearHistory=Clear Search History
|
||||
cmd_clearHistory_accesskey=C
|
||||
|
|
Загрузка…
Ссылка в новой задаче