From b7b2eea3e7d492281f9d2c07cb895ad04fd86de7 Mon Sep 17 00:00:00 2001 From: Alexander Yuzhin Date: Tue, 22 Nov 2016 11:52:35 +0300 Subject: [PATCH] [DE mobile] Apply table style on add. --- .../documenteditor/mobile/app/controller/add/AddTable.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/mobile/app/controller/add/AddTable.js b/apps/documenteditor/mobile/app/controller/add/AddTable.js index 8bebc4978..04ff5ca0a 100644 --- a/apps/documenteditor/mobile/app/controller/add/AddTable.js +++ b/apps/documenteditor/mobile/app/controller/add/AddTable.js @@ -84,7 +84,8 @@ define([ onStyleClick: function (e) { var me = this, - $target = $(e.currentTarget); + $target = $(e.currentTarget), + type = $target.data('type'); DE.getController('AddContainer').hideModal(); @@ -114,7 +115,11 @@ define([ if (me.api) { 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); } } }