Merge pull request #1686 from ONLYOFFICE/fix/bugfix

Fix/bugfix
This commit is contained in:
Julia Radzhabova 2022-04-06 18:08:47 +03:00 committed by GitHub
commit fbbf4d1142
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -4159,9 +4159,10 @@ define([
if (frame_pr)
menuDropCapAdvanced.setIconCls(frame_pr.get_DropCap()===Asc.c_oAscDropCap.Drop ? 'menu__icon dropcap-intext' : 'menu__icon dropcap-inmargin');
menuStyleSeparator.setVisible(me.mode.canEditStyles && !isInChart);
menuStyle.setVisible(me.mode.canEditStyles && !isInChart);
if (me.mode.canEditStyles && !isInChart) {
var edit_style = me.mode.canEditStyles && !isInChart && !(value.imgProps && value.imgProps.isSmartArtInternal);
menuStyleSeparator.setVisible(edit_style);
menuStyle.setVisible(edit_style);
if (edit_style) {
me.menuStyleUpdate.setCaption(me.updateStyleText.replace('%1', DE.getController('Main').translationTable[window.currentStyleName] || window.currentStyleName));
}

View file

@ -475,9 +475,12 @@ define([
this._state.TriggerValue = this.AnimationProperties.asc_getTriggerObjectClick();
}
this.setTriggerList();
} else {
this._state.Effect = this._state.EffectGroup = this._state.EffectOption = undefined;
if (this.view && this.view.listEffects)
this.view.listEffects.fieldPicker.deselectAll();
}
this.setLocked();
},
setTriggerList: function (){