[SSE] Fix Bug 56175

This commit is contained in:
Julia Radzhabova 2022-06-21 22:05:31 +03:00
parent 5410b4e89a
commit 80065ba3ec
3 changed files with 9 additions and 6 deletions

View file

@ -69,8 +69,6 @@ define([
this.addListeners({
'FileMenu': {
'settings:apply': function() {
if (!me.mode || !me.mode.isEdit) return;
me.needUpdateFormula = true;
var lang = Common.localStorage.getItem("sse-settings-func-locale");
@ -116,13 +114,13 @@ define([
setApi: function (api) {
this.api = api;
this.api.asc_registerCallback('asc_onSendFunctionWizardInfo', _.bind(this.onSendFunctionWizardInfo, this));
if (this.formulasGroups && this.api) {
if (this.formulasGroups) {
Common.Utils.InternalSettings.set("sse-settings-func-last", Common.localStorage.getItem("sse-settings-func-last"));
this.reloadTranslations(Common.localStorage.getItem("sse-settings-func-locale") || this.appOptions.lang, true);
if (!this.mode.isEdit) return;
var me = this;
this.formulas = new SSE.Views.FormulaDialog({
@ -140,6 +138,7 @@ define([
}
this.formulaTab && this.formulaTab.setApi(this.api);
this.api.asc_registerCallback('asc_onSendFunctionWizardInfo', _.bind(this.onSendFunctionWizardInfo, this));
return this;
},
@ -193,6 +192,8 @@ define([
});
}
if (!this.mode.isEdit) return;
if (me.langDescJson[lang])
me.loadingFormulas(me.langDescJson[lang], suppressEvent);
else {

View file

@ -1006,6 +1006,8 @@ define([
}
}, 50);
} else {
var formulasDlgController = application.getController('FormulaDialog');
formulasDlgController && formulasDlgController.setMode(me.appOptions).setApi(me.api);
documentHolderView.createDelayedElementsViewer();
Common.NotificationCenter.trigger('document:ready', 'main');
me.applyLicense();

View file

@ -271,7 +271,7 @@ define([
'<tr>',
'<td class="group-name" colspan="2"><label><%= scope.strRegSettings %></label></td>',
'</tr>',
'<tr class="edit">',
'<tr class="">',
'<td><label><%= scope.strFuncLocale %></label></td>',
'<td>',
'<div><div id="fms-cmb-func-locale" style="display: inline-block; margin-right: 15px;vertical-align: middle;"></div>',