Commit e1380d6a authored by efalcy's avatar efalcy

hotline $77916 : fix jquery 3.2 compatibility for ckeditor module slideshow

parent 00fe6ca9
......@@ -857,18 +857,12 @@
if(!this.isImageLoaded(img[0])) {
this.preloads.append(img);
var context = this;
img.load(
img.on("load",
function() {
image.preloaded = true;
image.size = { width: this.width, height: this.height };
context.fireCallback(callback);
}
).error(
function() {
image.error = true;
image.preloaded = false;
image.size = false;
}
);
} else {
image.preloaded = true;
......@@ -884,7 +878,7 @@
if (this.isImageLoaded(img)) {
callback && callback();
} else {
$(img).load(callback);
$(img).on("load",callback);
};
},
isImageLoaded: function(img) {
......
- ticket #77916 : Carrousel ne s'afiche pas correctement
\ No newline at end of file
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