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

This commit is contained in:
Barış Soner Uşaklı
2018-01-13 18:10:47 -05:00
parent 72140e5338
commit 772872fb03

View File

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