From 68f50ef201e35715c11674ce9e868ac8e272d9ad Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Fri, 21 Sep 2001 07:33:14 +0000 Subject: [PATCH] Bug #100608 --> for ldap, min # of result for popup is 2 r=hewitt sr=sspitzer --- .../resources/content/MsgComposeCommands.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/mailnews/compose/resources/content/MsgComposeCommands.js b/mailnews/compose/resources/content/MsgComposeCommands.js index 8ef97f977a49..f69bc0cfca65 100644 --- a/mailnews/compose/resources/content/MsgComposeCommands.js +++ b/mailnews/compose/resources/content/MsgComposeCommands.js @@ -827,9 +827,19 @@ function setupLdapAutocompleteSession() // if we make it here, we know that session initialization has // succeeded; add the session for all recipients, and // remember that we've done so + var autoCompleteWidget; for (var i=1; i <= MAX_RECIPIENTS; i++) - document.getElementById("msgRecipient#" + i). - addSession(LDAPSession); + { + autoCompleteWidget = document.getElementById("msgRecipient#" + i); + if (autoCompleteWidget) + { + autoCompleteWidget.addSession(LDAPSession); + // ldap searches don't insert a default entry with the default domain appended to it + // so reduce the minimum results for a popup to 2 in this case. + autoCompleteWidget.minResultsForPopup = 2; + + } + } sessionAdded = true; } }