mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
hide area if there are no widgets
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user