Skip to content

Node.js based forum software built for the modern web

trigger action:windows.loaded on coldload if widgets are already rendered

Barış Soner Uşaklı772872fb030a
diff --git a/public/src/widgets.js b/public/src/widgets.js
index badc55c892..51f6e0d2be 100644
--- a/public/src/widgets.js
+++ b/public/src/widgets.js
@@ -15,6 +15,7 @@
locations.forEach(function (location) {
var area = $('#content [widget-area="' + location + '"]');
if (area.length) {
+ $(window).trigger('action:widgets.loaded', {});
return;
}