From 9da637263e281d0b9fe3413c77b189bb6427626d Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 9 Mar 2010 14:29:16 +0000 Subject: [PATCH] Monotone-Parent: 03c23ddd42cc8c0dc879455acf6c14cc491d7f12 Monotone-Revision: 390c5899c8e498b7d320dc7528a7ffbf31204b43 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-03-09T14:29:16 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 2 ++ UI/WebServerResources/generic.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index 21261c250..02a0ca94e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ changes the content of input fields. (onSearchKeyDown): simplified method by making use of the new function above. + (onSearchBlur): clear the timer if the field is empty, to avoid a + useless search on the ghost phrase. 2010-03-08 Wolfgang Sourdeau diff --git a/UI/WebServerResources/generic.js b/UI/WebServerResources/generic.js index 4c2d9ffb0..a19847734 100644 --- a/UI/WebServerResources/generic.js +++ b/UI/WebServerResources/generic.js @@ -904,6 +904,8 @@ function onSearchBlur(event) { this.setAttribute("modified", ""); this.setStyle({ color: "#909090" }); this.value = this.ghostPhrase; + if (this.timer) + clearTimeout(this.timer); search["value"] = ""; if (this.lastSearch != "") { this.lastSearch = "";