Commit 3ea69c7b authored by Julia Radzhabova's avatar Julia Radzhabova

Merge remote-tracking branch 'origin/feature/new-mobile' into feature/new-mobile

parents 337ee3a6 cb6492e6
...@@ -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