Monotone-Parent: 03c23ddd42cc8c0dc879455acf6c14cc491d7f12

Monotone-Revision: 390c5899c8e498b7d320dc7528a7ffbf31204b43

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-03-09T14:29:16
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2010-03-09 14:29:16 +00:00
parent abeac067fd
commit 9da637263e
2 changed files with 4 additions and 0 deletions

View File

@ -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 <wsourdeau@inverse.ca>

View File

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