Commit e8733eb8 authored by Julia Radzhabova's avatar Julia Radzhabova

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

parent 36be6edc
......@@ -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;
},
......
......@@ -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;
},
......
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