Bug 350675: fix the searchbar's value setter to behave correctly (gray text was being removed incorrectly, setting to a non-empty value didn't remove the gray styling), r=mano

This commit is contained in:
gavin@gavinsharp.com 2007-10-02 20:35:34 -07:00
Родитель e3584e84ab
Коммит 8f958cf715
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -158,7 +158,7 @@ Sanitizer.prototype = {
while (windows.hasMoreElements()) {
var searchBar = windows.getNext().document.getElementById("searchbar");
if (searchBar) {
searchBar.textbox.value = "";
searchBar.value = "";
searchBar.textbox.editor.enableUndo(false);
searchBar.textbox.editor.enableUndo(true);
}