[DE mobile] Fixed display default table styles.

This commit is contained in:
Alexander Yuzhin 2016-12-01 13:06:23 +03:00
parent 23dae4e89b
commit cb6492e690

View file

@ -48,7 +48,8 @@ define([
'use strict'; 'use strict';
DE.Controllers.AddTable = Backbone.Controller.extend(_.extend((function() { DE.Controllers.AddTable = Backbone.Controller.extend(_.extend((function() {
var _styles = []; var _styles = [],
_initDefaultStyles = false;
return { return {
models: [], models: [],
@ -75,7 +76,10 @@ define([
initEvents: function () { initEvents: function () {
var me = this; var me = this;
if (_styles.length < 1) { if (!_initDefaultStyles) {
_initDefaultStyles = true;
_styles = [];
me.api.asc_GetDefaultTableStyles(); me.api.asc_GetDefaultTableStyles();
} }