зеркало из https://github.com/mozilla/pjs.git
Fix bug 308966 Warn checkbox not enabling/disabling in update options. Patch by Dave Townsend (Mossop) <mossop@blueprintit.co.uk> r=mconnor
This commit is contained in:
Родитель
38b1acc1b4
Коммит
4a31bfa520
|
@ -129,11 +129,10 @@
|
||||||
this._value = aValue;
|
this._value = aValue;
|
||||||
if (this.instantApply && aUpdate)
|
if (this.instantApply && aUpdate)
|
||||||
this.valueFromPreferences = aValue;
|
this.valueFromPreferences = aValue;
|
||||||
|
else if (aUpdate) {
|
||||||
|
this.preferences.fireChangedEvent(this);
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
// I wonder if we should synthesize a change event handler here.
|
|
||||||
// As it stands we only fire onsyncfrompreference when UE calls
|
|
||||||
// setElementValue. That's enough to reinit the UI element but
|
|
||||||
// may be counter intuitive.
|
|
||||||
this.updateElements();
|
this.updateElements();
|
||||||
}
|
}
|
||||||
return aValue;
|
return aValue;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче