Skip to content

Node.js based forum software built for the modern web

hide area if there are no widgets

barisusakli351e37681286
diff --git a/public/src/widgets.js b/public/src/widgets.js
index 2ef647bfc4..7e14eaf632 100644
--- a/public/src/widgets.js
+++ b/public/src/widgets.js
@@ -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);
}