From 351e376812864d1438c7e8f6df65660c0e95865a Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 28 May 2014 16:24:10 -0400 Subject: [PATCH] hide area if there are no widgets --- public/src/widgets.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }