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:
bugzilla%standard8.demon.co.uk 2005-09-17 18:54:14 +00:00
Родитель 38b1acc1b4
Коммит 4a31bfa520
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -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;