зеркало из https://github.com/mozilla/pjs.git
authenticated LDAP autocompletion incorrectly autopicks current addr after password entered (bug 146569) r=blake@netscape.com, sr=hewitt@netscape.com
This commit is contained in:
Родитель
6da6fe6d2e
Коммит
3d29c03f53
|
@ -60,7 +60,7 @@ Rights Reserved.
|
|||
type="autocomplete" flex="1"
|
||||
searchSessions="addrbook" timeout="300" maxrows="4"
|
||||
autoFill="true" autoFillAfterMatch="true" forceComplete="true"
|
||||
minResultsForPopup="3"
|
||||
minResultsForPopup="3" ignoreBlurWhileSearching="true"
|
||||
ontextcommand="awRecipientTextCommand(eventParam, this)"
|
||||
onerrorcommand="awRecipientErrorCommand(eventParam, this)"
|
||||
oninput="gContentChanged=true; setupAutocomplete();" disableonsend="true"
|
||||
|
|
|
@ -187,6 +187,16 @@
|
|||
onset="this.setAttribute('disableAutocomplete', val); return val;"
|
||||
onget="return this.getAttribute('disableAutocomplete') == 'true';"/>
|
||||
|
||||
<!-- option to completely ignore any blur events while
|
||||
searches are still going on. This is useful so that nothing
|
||||
gets autopicked if the window is required to lose focus for
|
||||
some reason (eg in LDAP autocomplete, another window may be
|
||||
brought up so that the user can enter a password to authenticate
|
||||
to an LDAP server). -->
|
||||
<property name="ignoreBlurWhileSearching"
|
||||
onset="this.setAttribute('ignoreBlurWhileSearching', val); return val;"
|
||||
onget="return this.getAttribute('ignoreBlurWhileSearching') == 'true';"/>
|
||||
|
||||
<property name="minResultsForPopup"
|
||||
onset="this.setAttribute('minResultsForPopup', val); return val;"
|
||||
onget="var t = parseInt(this.getAttribute('minResultsForPopup')); return t ? t : 0;"/>
|
||||
|
@ -1260,7 +1270,7 @@
|
|||
action="this.userAction = 'typing';"/>
|
||||
|
||||
<handler event="blur" phase="capturing"
|
||||
action="this.userAction = 'none'; this.finishAutoComplete(false, false, event);"/>
|
||||
action="if ( !(this.ignoreBlurWhileSearching && this.isSearching) ) {this.userAction = 'none'; this.finishAutoComplete(false, false, event);}"/>
|
||||
</handlers>
|
||||
</binding>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче