Skip to content

Commit

Permalink
Bug 309081 Sync xpfe autocomplete attributes with toolkit ones (sync …
Browse files Browse the repository at this point in the history
…case). r=mkmelin,sr=Neil
  • Loading branch information
Unknown committed May 15, 2008
1 parent 02f2f60 commit c408966
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions xpfe/components/autocomplete/resources/content/autocomplete.xml
Original file line number Diff line number Diff line change
Expand Up @@ -149,37 +149,37 @@
<!-- option for filling the textbox with the best match while typing
and selecting the difference -->
<property name="autoFill"
onset="this.setAttribute('autoFill', val); return val;"
onget="return this.getAttribute('autoFill') == 'true';"/>
onset="this.setAttribute('autofill', val); return val;"
onget="return this.getAttribute('autofill') == 'true';"/>

<!-- if the resulting match string is not at the beginning of the typed string,
this will optionally autofill like this "bar |>> foobar|" -->
<property name="autoFillAfterMatch"
onset="this.setAttribute('autoFillAfterMatch', val); return val;"
onget="return this.getAttribute('autoFillAfterMatch') == 'true';"/>
onset="this.setAttribute('autofillaftermatch', val); return val;"
onget="return this.getAttribute('autofillaftermatch') == 'true';"/>

<!-- if this attribute is set, allow different style for
non auto-completed lines -->
<property name="highlightNonMatches"
onset="this.setAttribute('highlightNonMatches', val); return val;"
onget="return this.getAttribute('highlightNonMatches') == 'true';"/>
onset="this.setAttribute('highlightnonmatches', val); return val;"
onget="return this.getAttribute('highlightnonmatches') == 'true';"/>

<!-- toggles a second column in the results list which contains
the string in the comment field of each autocomplete result -->
<property name="showCommentColumn"
onget="return this.getAttribute('showCommentColumn') == 'true';">
onget="return this.getAttribute('showcommentcolumn') == 'true';">
<setter><![CDATA[
this.resultsPopup.showCommentColumn = val;
this.setAttribute('showCommentColumn', val); return val;
this.setAttribute('showcommentcolumn', val); return val;
]]></setter>
</property>


<!-- option for completing to the default result whenever the user hits
enter or the textbox loses focus -->
<property name="forceComplete"
onset="this.setAttribute('forceComplete', val); return val;"
onget="return this.getAttribute('forceComplete') == 'true';"/>
onset="this.setAttribute('forcecomplete', val); return val;"
onget="return this.getAttribute('forcecomplete') == 'true';"/>

<!-- option to show the popup containing the results -->
<property name="showPopup"
Expand All @@ -189,13 +189,13 @@
<!-- option to allow scrolling through the list via the tab key, rather than
tab moving focus out of the textbox -->
<property name="tabScrolling"
onset="return this.setAttribute('tabScrolling', val); return val;"
onget="return this.getAttribute('tabScrolling') == 'true';"/>
onset="return this.setAttribute('tabscrolling', val); return val;"
onget="return this.getAttribute('tabscrolling') == 'true';"/>

<!-- option to turn off autocomplete -->
<property name="disableAutocomplete"
onset="this.setAttribute('disableAutocomplete', val); return val;"
onget="return this.getAttribute('disableAutocomplete') == 'true';"/>
<property name="disableAutoComplete"
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
Expand All @@ -204,12 +204,12 @@
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';"/>
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 = this.getAttribute('minResultsForPopup'); return t ? parseInt(t) : 1;"/>
onset="this.setAttribute('minresultsforpopup', val); return val;"
onget="var t = this.getAttribute('minresultsforpopup'); return t ? parseInt(t) : 1;"/>

<!-- state which indicates the current action being performed by the user.
Possible values are : none, typing, scrolling -->
Expand Down Expand Up @@ -558,7 +558,7 @@
me.clearTimer();
if (me.disableAutocomplete)
if (me.disableAutoComplete)
return;
switch (aAction) {
Expand Down Expand Up @@ -624,7 +624,7 @@
<parameter name="aResults"/>
<parameter name="aStatus"/>
<body><![CDATA[
if (this.disableAutocomplete)
if (this.disableAutoComplete)
return;
--this.mSessionReturns;
Expand Down Expand Up @@ -747,7 +747,7 @@
<body><![CDATA[
this.mFinishAfterSearch = false;
this.mFireAfterSearch = false;
if (this.mNeedToFinish && !this.disableAutocomplete) {
if (this.mNeedToFinish && !this.disableAutoComplete) {
// set textbox value to either override value, or default search result
var val = this.resultsPopup.overrideValue;
if (val) {
Expand Down Expand Up @@ -899,7 +899,7 @@
if (this.ignoreInputEvent)
return;
if (this.disableAutocomplete)
if (this.disableAutoComplete)
return;
this.userAction = "typing";
Expand Down

0 comments on commit c408966

Please sign in to comment.