From 5fb329c853cffbd5dfdda2116326d3d93323267a Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 22 Apr 2020 17:17:31 +0300 Subject: [PATCH] [SSE] Formula wizard refactoring --- apps/spreadsheeteditor/main/app/view/FormulaWizard.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/FormulaWizard.js b/apps/spreadsheeteditor/main/app/view/FormulaWizard.js index 6874693b98..f3169b11fd 100644 --- a/apps/spreadsheeteditor/main/app/view/FormulaWizard.js +++ b/apps/spreadsheeteditor/main/app/view/FormulaWizard.js @@ -317,7 +317,7 @@ define([ win.setSettings({ api : me.api, range : !_.isEmpty(input.getValue()) ? input.getValue() : '', - type : Asc.c_oAscSelectionDialogType.Chart + type : Asc.c_oAscSelectionDialogType.FunctionWizard }); } }, @@ -330,14 +330,15 @@ define([ } var me = this, lang = (this.lang) ? this.lang.split(/[\-\_]/)[0] : 'en', - url = 'resources/help/' + lang + '/Functions/' + (this.funcprops.origin.toLocaleLowerCase()) + '.htm'; + name = '/Functions/' + this.funcprops.origin.toLocaleLowerCase().replace(/\./g, '-') + '.htm', + url = 'resources/help/' + lang + name; fetch(url).then(function(response){ if ( response.ok ) { me.helpUrl = url; me.showHelp(); } else { - url = 'resources/help/en/Functions/' + (me.funcprops.origin.toLocaleLowerCase()) + '.htm'; + url = 'resources/help/en' + name; fetch(url).then(function(response){ if ( response.ok ) { me.helpUrl = url;