}
},
- _preloadContentLinkTextures: function (page, clinks, enter, callback) {
+ _preloadContentLinkTextures: function (page, clinks, links, enter, callback) {
var textures = {};
var cl = '';
$.each(clinks, function (blendmode, links) {
cl += links.join('');
});
+ $.each(links, function (blendmode, links) {
+ $.each(links, function (k, v) {
+ if (v.indexOf('data-force-texture') >= 0) {
+ cl += v;
+ }
+ });
+ });
if (cl === '') {
callback(textures, cl);
var url = $(this).data('image').replace(/^\.\./, 'data') + '?j=' + (new Date()).getTime();
textures[i] = loadImage(url, cb, 'i_' + i);
});
+
if (nb === 0) {
callback(textures, cl);
return;
}
var $this = this;
- this._preloadContentLinkTextures(page, this.fluidbook.settings.clinks[page], enter, function (textures, clinks) {
+ this._preloadContentLinkTextures(page, this.fluidbook.settings.clinks[page], this.fluidbook.settings.links[page], enter, function (textures, clinks) {
var d = 1024;
var c = document.getElementById("pscanvas");
c.width = d;