[PE] Fix Bug 32561.
This commit is contained in:
parent
9297531dff
commit
0293d46a71
|
@ -1054,6 +1054,8 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
this.cmbEffectType.setDisabled(arr.length<1 || this._stateDisabled.effects);
|
this.cmbEffectType.setDisabled(arr.length<1 || this._stateDisabled.effects);
|
||||||
|
this.numDuration.setDisabled(arr.length<1 || this._stateDisabled.effects);
|
||||||
|
this.btnPreview.setDisabled(arr.length<1 || this._stateDisabled.effects);
|
||||||
},
|
},
|
||||||
|
|
||||||
onEffectNameSelect: function(combo, record) {
|
onEffectNameSelect: function(combo, record) {
|
||||||
|
@ -1486,10 +1488,11 @@ define([
|
||||||
this._stateDisabled.background = background;
|
this._stateDisabled.background = background;
|
||||||
}
|
}
|
||||||
if (effects !== this._stateDisabled.effects) {
|
if (effects !== this._stateDisabled.effects) {
|
||||||
|
var length = this.cmbEffectType.store.length;
|
||||||
this.cmbEffectName.setDisabled(effects);
|
this.cmbEffectName.setDisabled(effects);
|
||||||
this.cmbEffectType.setDisabled(effects);
|
this.cmbEffectType.setDisabled(length<1 || effects);
|
||||||
this.numDuration.setDisabled(effects);
|
this.numDuration.setDisabled(length<1 || effects);
|
||||||
this.btnPreview.setDisabled(effects);
|
this.btnPreview.setDisabled(length<1 || effects);
|
||||||
this._stateDisabled.effects = effects;
|
this._stateDisabled.effects = effects;
|
||||||
}
|
}
|
||||||
if (timing !== this._stateDisabled.timing) {
|
if (timing !== this._stateDisabled.timing) {
|
||||||
|
|
Loading…
Reference in a new issue