From 565d1e84becb3e55b762cb1be8b4edd249292e4d Mon Sep 17 00:00:00 2001 From: "reed%reedloden.com" Date: Sun, 10 Feb 2008 05:10:01 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20414857=20-=20"When=20unfocusing=20the=20S?= =?UTF-8?q?earch=20box=20in=20the=20Download=20manager=20fast,=20it=20does?= =?UTF-8?q?n't=20apply=20the=20pattern"=20[p=3Ddao@mozilla.com=20(D=C3=83?= =?UTF-8?q?=C2=A3o=20Gottwald)=20r=3Dgavin=20a1.9=3Ddamons]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@245331 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/toolkit/content/widgets/textbox.xml | 26 ++++++++++++--------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/mozilla/toolkit/content/widgets/textbox.xml b/mozilla/toolkit/content/widgets/textbox.xml index fd95ca93def..1c3887751f5 100644 --- a/mozilla/toolkit/content/widgets/textbox.xml +++ b/mozilla/toolkit/content/widgets/textbox.xml @@ -282,18 +282,22 @@ - - - return this.inputField.value; - - - + - + } else { + // display the emptyText _after_ setting a value that's an empty string + this.inputField.value = val; + this._updateVisibleText(); + } + if (this._timer) + clearTimeout(this._timer); + return val; + ]]>