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

v1.18.x
Barış Soner Uşaklı 7 years ago
parent 72140e5338
commit 772872fb03

@ -15,6 +15,7 @@
locations.forEach(function (location) { locations.forEach(function (location) {
var area = $('#content [widget-area="' + location + '"]'); var area = $('#content [widget-area="' + location + '"]');
if (area.length) { if (area.length) {
$(window).trigger('action:widgets.loaded', {});
return; return;
} }

Loading…
Cancel
Save