mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-07 14:28:52 +00:00
Fix for bug #2878
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user