From 00f8ef4d37b323cab8f2d82ce6f81c40b4873e39 Mon Sep 17 00:00:00 2001 From: OVSharova Date: Wed, 11 Aug 2021 15:59:56 +0300 Subject: [PATCH] Edit icon for btnParameters --- apps/presentationeditor/main/app/controller/Transitions.js | 2 ++ apps/presentationeditor/main/app/view/Transitions.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/presentationeditor/main/app/controller/Transitions.js b/apps/presentationeditor/main/app/controller/Transitions.js index 1603add00..5ff0fd191 100644 --- a/apps/presentationeditor/main/app/controller/Transitions.js +++ b/apps/presentationeditor/main/app/controller/Transitions.js @@ -187,6 +187,7 @@ define([ var parameter = this.view.setMenuParameters(type); if (parameter) this.onParameterClick(parameter); + this.onParameterClick(parameter); } this.Effect = type; @@ -277,6 +278,7 @@ define([ if (this._state.Effect !== undefined) { var item = me.listEffects.store.findWhere({value: this._state.Effect}); me.listEffects.menuPicker.selectRecord(item ? item : me.listEffects.menuPicker.items[0]); + this.view.btnParameters.setIconCls('toolbar__icon icon ' + item.get('imageUrl')); } if (me.btnParameters.menu.items.length > 0 && this._state.EffectType !== undefined) diff --git a/apps/presentationeditor/main/app/view/Transitions.js b/apps/presentationeditor/main/app/view/Transitions.js index f0e5dd993..068e6463c 100644 --- a/apps/presentationeditor/main/app/view/Transitions.js +++ b/apps/presentationeditor/main/app/view/Transitions.js @@ -189,7 +189,7 @@ define([ this.btnParameters = new Common.UI.Button({ cls: 'btn-toolbar x-huge icon-top', caption: this.txtParameters, - iconCls: 'toolbar__icon icon transition-fade', + iconCls: 'toolbar__icon icon transition-none', menu: new Common.UI.Menu({ items: this.createParametersMenuItems()}), lock:[_set.slideDeleted, _set.noSlides, _set.disableOnStart, _set.transitLock]