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

This commit is contained in:
Julia Radzhabova 2016-05-06 12:32:16 +03:00
parent d7f163e1f9
commit cae1fe694d

View file

@ -607,10 +607,8 @@ define([
this.api = api;
if (this.api) {
this.api.asc_registerCallback('asc_onImgWrapStyleChanged', _.bind(this._ImgWrapStyleChanged, this));
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;
},