[DE mobile] Apply table style on add.

This commit is contained in:
Alexander Yuzhin 2016-11-22 11:52:35 +03:00
parent 4ea3b3ddee
commit b7b2eea3e7

View file

@ -84,7 +84,8 @@ define([
onStyleClick: function (e) { onStyleClick: function (e) {
var me = this, var me = this,
$target = $(e.currentTarget); $target = $(e.currentTarget),
type = $target.data('type');
DE.getController('AddContainer').hideModal(); DE.getController('AddContainer').hideModal();
@ -114,7 +115,11 @@ define([
if (me.api) { if (me.api) {
me.api.put_Table(parseInt(size[0]), parseInt(size[1])); me.api.put_Table(parseInt(size[0]), parseInt(size[1]));
//TODO: Style ?
var properties = new Asc.CTableProp();
properties.put_TableStyle(type);
me.api.tblApply(properties);
} }
} }
} }