From 3cab3a1586d6516fd0a35e68f6d459027002710f Mon Sep 17 00:00:00 2001 From: "pkasting%google.com" Date: Tue, 8 Aug 2006 00:38:07 +0000 Subject: [PATCH] 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 --- .../components/typeaheadfind/content/findBar.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mozilla/toolkit/components/typeaheadfind/content/findBar.js b/mozilla/toolkit/components/typeaheadfind/content/findBar.js index 81afe39440c..c16684f7f94 100755 --- a/mozilla/toolkit/components/typeaheadfind/content/findBar.js +++ b/mozilla/toolkit/components/typeaheadfind/content/findBar.js @@ -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(); } }