diff --git a/apps/documenteditor/mobile/app/controller/add/AddTable.js b/apps/documenteditor/mobile/app/controller/add/AddTable.js index d22a4f96c..fef864537 100644 --- a/apps/documenteditor/mobile/app/controller/add/AddTable.js +++ b/apps/documenteditor/mobile/app/controller/add/AddTable.js @@ -123,12 +123,7 @@ define([ var size = picker.value; if (me.api) { - me.api.put_Table(parseInt(size[0]), parseInt(size[1])); - - var properties = new Asc.CTableProp(); - properties.put_TableStyle(type); - - me.api.tblApply(properties); + me.api.put_Table(parseInt(size[0]), parseInt(size[1]), type.toString()); } } } diff --git a/apps/documenteditor/mobile/app/controller/edit/EditTable.js b/apps/documenteditor/mobile/app/controller/edit/EditTable.js index c94e62bbf..c94825acb 100644 --- a/apps/documenteditor/mobile/app/controller/edit/EditTable.js +++ b/apps/documenteditor/mobile/app/controller/edit/EditTable.js @@ -598,7 +598,7 @@ define([ $('#edit-table-styles .table-styles div').removeClass('active'); $target.addClass('active'); - properties.put_TableStyle(type); + properties.put_TableStyle(type.toString()); me.api.tblApply(properties); }, diff --git a/apps/presentationeditor/mobile/app/controller/add/AddTable.js b/apps/presentationeditor/mobile/app/controller/add/AddTable.js index 5f4e3d8ae..193e9ea59 100644 --- a/apps/presentationeditor/mobile/app/controller/add/AddTable.js +++ b/apps/presentationeditor/mobile/app/controller/add/AddTable.js @@ -104,12 +104,7 @@ define([ var size = picker.value; if (me.api) { - me.api.put_Table(parseInt(size[0]), parseInt(size[1])); - - var properties = new Asc.CTableProp(); - properties.put_TableStyle(type); - - me.api.tblApply(properties); + me.api.put_Table(parseInt(size[0]), parseInt(size[1]), undefined, type.toString()); } } } diff --git a/apps/presentationeditor/mobile/app/controller/edit/EditTable.js b/apps/presentationeditor/mobile/app/controller/edit/EditTable.js index 91d13c7c6..280165d27 100644 --- a/apps/presentationeditor/mobile/app/controller/edit/EditTable.js +++ b/apps/presentationeditor/mobile/app/controller/edit/EditTable.js @@ -442,7 +442,7 @@ define([ $('#edit-table-styles .table-styles div').removeClass('active'); $target.addClass('active'); - properties.put_TableStyle(type); + properties.put_TableStyle(type.toString()); me.api.tblApply(properties); },