[DE] Get/set formula text

This commit is contained in:
Julia Radzhabova 2019-02-27 13:19:07 +03:00
parent a02151af4f
commit 2d70f7af36
2 changed files with 6 additions and 6 deletions

View file

@ -78,6 +78,7 @@ define([
this.options.tpl = _.template(this.template)(this.options);
this.bookmarks = this.options.bookmarks;
this.api = this.options.api;
Common.UI.Window.prototype.initialize.call(this, this.options);
},
@ -164,13 +165,11 @@ define([
afterRender: function() {
this.refreshBookmarks();
this._setDefaults(this.props);
this._setDefaults();
},
_setDefaults: function (props) {
if (props) {
}
_setDefaults: function () {
this.inputFormula.setValue(this.api.asc_GetTableFormula());
this.checkFormulaInput(this.inputFormula, this.inputFormula.getValue());
},

View file

@ -771,11 +771,12 @@ define([
if (me.api && !this._locked){
(new DE.Views.TableFormulaDialog(
{
api: me.api,
bookmarks: me.api.asc_GetBookmarksManager(),
handler: function(result, value) {
if (result == 'ok') {
if (me.api) {
// me.api.addFormula(value.tableProps);
me.api.asc_AddTableFormula(value);
}
}
me.fireEvent('editcomplete', me);