Commit cb6492e6 authored by Alexander Yuzhin's avatar Alexander Yuzhin

[DE mobile] Fixed display default table styles.

parent 23dae4e8
...@@ -48,7 +48,8 @@ define([ ...@@ -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([ ...@@ -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();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment