From cb6492e690e4915f3625760d398aab64cb01dbd0 Mon Sep 17 00:00:00 2001 From: Alexander Yuzhin Date: Thu, 1 Dec 2016 13:06:23 +0300 Subject: [PATCH] [DE mobile] Fixed display default table styles. --- apps/documenteditor/mobile/app/controller/add/AddTable.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/mobile/app/controller/add/AddTable.js b/apps/documenteditor/mobile/app/controller/add/AddTable.js index 015e743e9..be729f5e5 100644 --- a/apps/documenteditor/mobile/app/controller/add/AddTable.js +++ b/apps/documenteditor/mobile/app/controller/add/AddTable.js @@ -48,7 +48,8 @@ define([ 'use strict'; DE.Controllers.AddTable = Backbone.Controller.extend(_.extend((function() { - var _styles = []; + var _styles = [], + _initDefaultStyles = false; return { models: [], @@ -75,7 +76,10 @@ define([ initEvents: function () { var me = this; - if (_styles.length < 1) { + if (!_initDefaultStyles) { + _initDefaultStyles = true; + _styles = []; + me.api.asc_GetDefaultTableStyles(); }