Monotone-Parent: 69df71bbd74fc7ccbfdfda4d8e386bd2d00ce08a
Monotone-Revision: 2d32d54f3ab29efb615ba64c54fb4714a8cbd0a1

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2008-09-02T19:15:58
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2008-09-02 19:15:58 +00:00
parent 6fa5b84ecd
commit cc1bd1abe5

View File

@@ -354,11 +354,11 @@ function onContactKeydown(event) {
this.confirmedValue = null;
MailEditor.selectedIndex = -1;
MailEditor.currentField = this;
if (this.value.length > 1 && MailEditor.delayedSearch == false) {
MailEditor.delayedSearch = true;
setTimeout("performSearch()", MailEditor.delay);
if (this.value.length > 1) {
if (MailEditor.delayedSearch) window.clearTimeout(MailEditor.delayedSearch);
MailEditor.delayedSearch = window.setTimeout("performSearch()", MailEditor.delay);
}
else if (this.value.length == 0) {
else if (this.value.length <= 1) {
if (document.currentPopupMenu)
hideMenu(document.currentPopupMenu);
}
@@ -409,7 +409,6 @@ function performSearch() {
triggerAjaxRequest(urlstr, performSearchCallback, MailEditor.currentField);
}
}
MailEditor.delayedSearch = false;
}
function performSearchCallback(http) {