[SSE] Formula wizard refactoring
This commit is contained in:
parent
92102cfac1
commit
5fb329c853
|
@ -317,7 +317,7 @@ define([
|
||||||
win.setSettings({
|
win.setSettings({
|
||||||
api : me.api,
|
api : me.api,
|
||||||
range : !_.isEmpty(input.getValue()) ? input.getValue() : '',
|
range : !_.isEmpty(input.getValue()) ? input.getValue() : '',
|
||||||
type : Asc.c_oAscSelectionDialogType.Chart
|
type : Asc.c_oAscSelectionDialogType.FunctionWizard
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -330,14 +330,15 @@ define([
|
||||||
}
|
}
|
||||||
var me = this,
|
var me = this,
|
||||||
lang = (this.lang) ? this.lang.split(/[\-\_]/)[0] : 'en',
|
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){
|
fetch(url).then(function(response){
|
||||||
if ( response.ok ) {
|
if ( response.ok ) {
|
||||||
me.helpUrl = url;
|
me.helpUrl = url;
|
||||||
me.showHelp();
|
me.showHelp();
|
||||||
} else {
|
} else {
|
||||||
url = 'resources/help/en/Functions/' + (me.funcprops.origin.toLocaleLowerCase()) + '.htm';
|
url = 'resources/help/en' + name;
|
||||||
fetch(url).then(function(response){
|
fetch(url).then(function(response){
|
||||||
if ( response.ok ) {
|
if ( response.ok ) {
|
||||||
me.helpUrl = url;
|
me.helpUrl = url;
|
||||||
|
|
Loading…
Reference in a new issue