diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 2505113ce2..c332722894 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -124,6 +124,12 @@ var ajaxify = {}; area.html(templates.prepare(area.html()).parse({ widgets: renderedWidgets })).removeClass('hidden'); + + if (!renderedWidgets.length) { + $('body [no-widget-class]').each(function() { + this.className = this.getAttribute('no-widget-class'); + }); + } next(err); }); diff --git a/public/templates/category.tpl b/public/templates/category.tpl index 7489279134..4e5308d04b 100644 --- a/public/templates/category.tpl +++ b/public/templates/category.tpl @@ -29,7 +29,7 @@
-
+