Skip to content

Node.js based forum software built for the modern web

Add post images hook (#5828)

Stjepan Osojnički9b491e4c2ee4
diff --git a/public/src/client/topic/images.js b/public/src/client/topic/images.js
index 65ad386371..e121eda7c2 100644
--- a/public/src/client/topic/images.js
+++ b/public/src/client/topic/images.js
@@ -20,6 +20,7 @@ define('forum/topic/images', [
} else {
images.attr('data-state', 'loaded');
Images.wrapImagesInLinks(posts);
+ $(window).trigger('action:images.loaded');
}
};
@@ -75,6 +76,7 @@ define('forum/topic/images', [
adjusting = false;
Images.wrapImagesInLinks(posts);
+ $(window).trigger('action:images.loaded');
posts.length = 0;
}
}