Bug 347268: Quick Find input box is sometimes red after bad Find match.
r=masayuki a=schrep on behalf of drivers git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@206795 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -419,12 +419,8 @@ var gFindBar = {
|
||||
findToolbar.hidden = false;
|
||||
|
||||
var findField = document.getElementById("find-field");
|
||||
findField.removeAttribute("status");
|
||||
this.setCaseSensitiveStr(findField.value);
|
||||
var statusIcon = document.getElementById("find-status-icon");
|
||||
statusIcon.removeAttribute("status");
|
||||
var statusText = document.getElementById("find-status");
|
||||
statusText.value = "";
|
||||
this.updateStatus(Components.interfaces.nsITypeAheadFind.FIND_FOUND, false);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -701,6 +697,8 @@ var gFindBar = {
|
||||
evt.charCode != CHAR_CODE_APOSTROPHE &&
|
||||
evt.charCode != CHAR_CODE_SLASH)
|
||||
this.fireKeypressEvent(findField.inputField, evt);
|
||||
else
|
||||
this.updateStatus(Components.interfaces.nsITypeAheadFind.FIND_FOUND, false);
|
||||
evt.preventDefault();
|
||||
}
|
||||
else {
|
||||
@@ -711,6 +709,8 @@ var gFindBar = {
|
||||
if (evt.charCode != CHAR_CODE_APOSTROPHE &&
|
||||
evt.charCode != CHAR_CODE_SLASH)
|
||||
this.fireKeypressEvent(findField.inputField, evt);
|
||||
else
|
||||
this.updateStatus(Components.interfaces.nsITypeAheadFind.FIND_FOUND, false);
|
||||
evt.preventDefault();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user