This commit is contained in:
OVSharova 2021-12-13 12:20:15 +03:00
parent 0ccf126f15
commit 7dafcaa3d0
2 changed files with 4 additions and 4 deletions

View file

@ -259,7 +259,7 @@ define([
group = this.AnimationProperties.asc_getClass();
(value == undefined) && (value = AscFormat.ANIM_PRESET_NONE);
this._state.noAnimation = (value===AscFormat.ANIM_PRESET_NONE);
this._state.noAnimation = (value === AscFormat.ANIM_PRESET_NONE);
if (this._state.Effect !== value || this._state.EffectGroup !== group) {
this._state.Effect = value;

View file

@ -150,7 +150,7 @@ define([
ClickSequence: 0,
ClickOf: 1
}
this.allEffects = Common.define.effectData.getEffectFullData();
Common.UI.BaseView.prototype.initialize.call(this, options);
this.toolbar = options.toolbar;
this.appConfig = options.mode;
@ -479,8 +479,8 @@ define([
setMenuParameters: function (effectId, option)
{
var effect = this.listEffects.store.findWhere({value: effectId});
var arrEffectOptions = Common.define.effectData.getEffectOptionsData(effect.get('group'), effect.get('value'));
var effect = _.findWhere(this.allEffects, {value: effectId});
var arrEffectOptions = Common.define.effectData.getEffectOptionsData(effect.group, effect.value);
if(!arrEffectOptions) {
this.btnParameters.menu.removeAll();
this._effectId = effectId