hide area if there are no widgets

This commit is contained in:
barisusakli
2014-05-28 16:24:10 -04:00
parent 9c0446d416
commit 351e376812

View File

@@ -53,9 +53,10 @@
area = $('#content [widget-area="' + location + '"]');
}
area.html(html).removeClass('hidden');
area.html(html);
if (!renderedWidgets.length) {
area.addClass('hidden');
ajaxify.widgets.reposition(location);
}