зеркало из https://github.com/mozilla/gecko-dev.git
Continuation of synchronisation of xpfe autocomplete with toolkit interfaces (change getOverrideValue() to attribute overrideValue) b=304309 r=ajschult sr=jag
This commit is contained in:
Родитель
d86fc39ca1
Коммит
16276c2eda
|
@ -769,7 +769,7 @@
|
||||||
this.mFireAfterSearch = 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
|
// set textbox value to either override value, or default search result
|
||||||
var val = this.resultsPopup.getOverrideValue();
|
var val = this.resultsPopup.overrideValue;
|
||||||
if (val) {
|
if (val) {
|
||||||
this.setTextValue(val);
|
this.setTextValue(val);
|
||||||
this.mNeedToFinish = false;
|
this.mNeedToFinish = false;
|
||||||
|
@ -842,7 +842,7 @@
|
||||||
<body><![CDATA[
|
<body><![CDATA[
|
||||||
// set textbox value to either override value, or the clicked result
|
// set textbox value to either override value, or the clicked result
|
||||||
var errItem=null;
|
var errItem=null;
|
||||||
var val = this.resultsPopup.getOverrideValue();
|
var val = this.resultsPopup.overrideValue;
|
||||||
if (val)
|
if (val)
|
||||||
this.setTextValue(val);
|
this.setTextValue(val);
|
||||||
else if (this.resultsPopup.selectedIndex != -1 && !this.noMatch) {
|
else if (this.resultsPopup.selectedIndex != -1 && !this.noMatch) {
|
||||||
|
@ -1594,14 +1594,11 @@
|
||||||
]]></body>
|
]]></body>
|
||||||
</method>
|
</method>
|
||||||
|
|
||||||
<!-- This method is meant to be overriden by bindings extending this one. When the
|
<!-- This property is meant to be overriden by bindings extending
|
||||||
user selects an item from the list by hitting enter or clicking, this method
|
this one. When the user selects an item from the list by
|
||||||
can set the value of the textbox to a different value if it wants to. -->
|
hitting enter or clicking, this method can set the value
|
||||||
<method name="getOverrideValue">
|
of the textbox to a different value if it wants to. -->
|
||||||
<body><![CDATA[
|
<property name="overrideValue" readonly="true" onget="return null;"/>
|
||||||
return null;
|
|
||||||
]]></body>
|
|
||||||
</method>
|
|
||||||
|
|
||||||
</implementation>
|
</implementation>
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче