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 = "";