diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js
index f1451b5912..85e6a24734 100644
--- a/public/src/forum/topic.js
+++ b/public/src/forum/topic.js
@@ -389,14 +389,20 @@
socket.on('api:posts.favourite', function(data) {
if (data.status === 'ok' && data.pid) {
var favEl = document.querySelector('.post_rep_' + data.pid).nextSibling;
- if (favEl) favEl.className = 'icon-star';
+ if (favEl) {
+ favEl.className = 'icon-star';
+ $(favEl).parent().addClass('btn-warning');
+ }
}
});
socket.on('api:posts.unfavourite', function(data) {
if (data.status === 'ok' && data.pid) {
var favEl = document.querySelector('.post_rep_' + data.pid).nextSibling;
- if (favEl) favEl.className = 'icon-star-empty';
+ if (favEl) {
+ favEl.className = 'icon-star-empty';
+ $(favEl).parent().removeClass('btn-warning');
+ }
}
});
diff --git a/public/templates/category.tpl b/public/templates/category.tpl
index d49af806b8..bbaae0322d 100644
--- a/public/templates/category.tpl
+++ b/public/templates/category.tpl
@@ -10,13 +10,8 @@
-
- There are no topics in this category.
- Why don't you try posting one?
-
-
@@ -27,7 +22,12 @@
-
+
+
+
+ There are no topics in this category.
+ Why don't you try posting one?
+
diff --git a/public/templates/topic.tpl b/public/templates/topic.tpl
index 4068c4c29b..aed8274cc9 100644
--- a/public/templates/topic.tpl
+++ b/public/templates/topic.tpl
@@ -42,7 +42,7 @@
-