[DE] Fix formula string

This commit is contained in:
Julia Radzhabova 2019-03-05 14:29:29 +03:00
parent 7e4f76e41d
commit 6da70788da

View file

@ -189,7 +189,7 @@ define([
});
this.cmbFormat.setData(arr);
var formula = this.api.asc_GetTableFormula(),
idx = formula.lastIndexOf('/\#');
idx = formula.lastIndexOf('\\#');
this.inputFormula.setValue(formula.substring(0, (idx>-1) ? idx : formula.length));
if (idx>-1)
this.cmbFormat.setValue(formula.substring(idx+2, formula.length));
@ -218,7 +218,7 @@ define([
},
getSettings: function () {
return (this.inputFormula.getValue() + '/\#' + this.cmbFormat.getValue());
return (this.inputFormula.getValue() + '\\#' + this.cmbFormat.getValue());
},
onBtnClick: function(event) {