mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug #100608 --> for ldap, min # of result for popup is 2
r=hewitt sr=sspitzer
This commit is contained in:
parent
70d3d81bf9
commit
68f50ef201
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user