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:
joe%retrovirus.com 2006-06-09 01:34:18 +00:00
Родитель ff440c16df
Коммит 86fc461833
2 изменённых файлов: 2 добавлений и 5 удалений

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

@ -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