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

This commit is contained in:
Julia Radzhabova 2016-05-06 16:46:04 +03:00
parent 36be6edcd9
commit e8733eb8b2
2 changed files with 2 additions and 6 deletions

View file

@ -564,9 +564,7 @@ define([
this.api = api;
if (this.api) {
this.api.SetInterfaceDrawImagePlaceSlide('slide-texture-img');
var textures = this.api.get_PropertyStandartTextures();
if (textures)
this.onInitStandartTextures(textures);
this.api.asc_registerCallback('asc_onInitStandartTextures', _.bind(this.onInitStandartTextures, this));
}
return this;
},

View file

@ -585,9 +585,7 @@ define([
this.api = api;
if (this.api) {
this.api.SetInterfaceDrawImagePlaceTextArt('textart-texture-img');
var textures = this.api.get_PropertyStandartTextures();
if (textures)
this.onInitStandartTextures(textures);
this.api.asc_registerCallback('asc_onInitStandartTextures', _.bind(this.onInitStandartTextures, this));
}
return this;
},