Merge pull request #1318 from ONLYOFFICE/fix/bugfix

Fix/bugfix
This commit is contained in:
Julia Radzhabova 2021-11-15 22:20:10 +03:00 committed by GitHub
commit 6d8e9fb010
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -396,7 +396,7 @@ define([
},
showSaveFormTip: function() {
if (!Common.localStorage.getItem("de-hide-saveform-tip") && !this.tipSaveForm) {
if (this.view.btnSaveForm && !Common.localStorage.getItem("de-hide-saveform-tip") && !this.tipSaveForm) {
var me = this;
me.tipSaveForm = new Common.UI.SynchronizeTip({
extCls: 'colored',

View file

@ -638,13 +638,16 @@ define([
},
onGroupKeyChanged: function(combo, record) {
if (this.api && !this._noApply) {
if (this.api && !this._noApply && record.value!=='') {
var props = this._originalProps || new AscCommon.CContentControlPr();
var specProps = this._originalCheckProps || new AscCommon.CSdtCheckBoxPr();
specProps.put_GroupKey(record.value);
props.put_CheckBoxPr(specProps);
this.api.asc_SetContentControlProperties(props, this.internalId);
this.fireEvent('editcomplete', this);
} else {
this.cmbGroupKey.setValue(this._state.groupKey ? this._state.groupKey : '');
this.fireEvent('editcomplete', this);
}
},