Skip to content

Node.js based forum software built for the modern web

closes #1080

psychobunnya3191227def9
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 @@
<!-- ENDIF !topics.length -->
<div class="category row">
- <div class="{topic_row_size}">
+ <div class="{topic_row_size}" no-widget-class="col-lg-12 col-sm-12">
<ul id="topics-container" itemscope itemtype="http://www.schema.org/ItemList" data-nextstart="{nextStart}">
<meta itemprop="itemListOrder" content="descending">
<!-- BEGIN topics -->