[PE] Загрузка текстур для автофигур по аналогии с редактором таблиц (по событию).

This commit is contained in:
Julia Radzhabova 2016-05-06 14:45:21 +03:00
parent f6e29849aa
commit e6fad877c0

View file

@ -569,10 +569,8 @@ define([
setApi: function(api) {
this.api = api;
if (this.api) {
this.api.SetInterfaceDrawImagePlaceShape('shape-texture-img');
var textures = this.api.get_PropertyStandartTextures();
if (textures)
this.onInitStandartTextures(textures);
this.api.asc_setInterfaceDrawImagePlaceShape('shape-texture-img');
this.api.asc_registerCallback('asc_onInitStandartTextures', _.bind(this.onInitStandartTextures, this));
}
return this;
},