Merge pull request #1332 from ONLYOFFICE/fix/de-forms

[DE forms] Fix for desktop
This commit is contained in:
Julia Radzhabova
2021-11-18 16:33:48 +03:00
committed by GitHub

View File

@ -425,6 +425,12 @@ define([
}
}
labelDocName = $('#title-doc-name');
if (data.doc) {
labelDocName.text(data.doc.title || '');
this.embedConfig.docTitle = data.doc.title;
}
this.api.asc_registerCallback('asc_onGetEditorPermissions', _.bind(this.onEditorPermissions, this));
this.api.asc_registerCallback('asc_onRunAutostartMacroses', _.bind(this.onRunAutostartMacroses, this));
this.api.asc_setDocInfo(docInfo);
@ -432,12 +438,6 @@ define([
this.api.asc_enableKeyEvents(true);
Common.Analytics.trackEvent('Load', 'Start');
labelDocName = $('#title-doc-name');
if (data.doc) {
labelDocName.text(data.doc.title || '');
this.embedConfig.docTitle = data.doc.title;
}
},
onRunAutostartMacroses: function() {