Merge pull request #1997 from ONLYOFFICE/fix/bug-59278

Fix Bug 59278
This commit is contained in:
Julia Radzhabova 2022-10-10 23:10:27 +03:00 committed by GitHub
commit 01b47592b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 9 deletions

View file

@ -2230,7 +2230,7 @@ define([
},
onRefreshField: function(item, e){
this.api && this.api.asc_UpdateComplexField(item.options.fieldProps);
this.api && this.api.asc_UpdateFields(true);
this.editComplete();
},

View file

@ -1420,13 +1420,10 @@ define([
me.menuAddCommentTable.setDisabled(value.paraProps!==undefined && value.paraProps.locked===true);
/** coauthoring end **/
var in_field = me.api.asc_GetCurrentComplexField();
var in_field = me.api.asc_HaveFields(true);
me.menuTableRefreshField.setVisible(!!in_field);
me.menuTableRefreshField.setDisabled(disabled);
menuTableFieldSeparator.setVisible(!!in_field);
if (in_field) {
me.menuTableRefreshField.options.fieldProps = in_field;
}
},
items: [
me.menuSpellCheckTable,
@ -1996,13 +1993,10 @@ define([
me.menuAddCommentPara.setDisabled(value.paraProps && value.paraProps.locked === true);
/** coauthoring end **/
var in_field = me.api.asc_GetCurrentComplexField();
var in_field = me.api.asc_HaveFields(true);
me.menuParaRefreshField.setVisible(!!in_field);
me.menuParaRefreshField.setDisabled(disabled);
menuParaFieldSeparator.setVisible(!!in_field);
if (in_field) {
me.menuParaRefreshField.options.fieldProps = in_field;
}
var listId = me.api.asc_GetCurrentNumberingId(),
in_list = (listId !== null);