diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index c5453595a661..ee51215675a0 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -445,12 +445,12 @@ uid = ids[1]; if (thread_state.locked !== '1') { - if (this.children[1].className == 'icon-star-empty') { - this.children[1].className = 'icon-star'; + if (this.children[2].className == 'icon-star-empty') { + this.children[2].className = 'icon-star'; socket.emit('api:posts.favourite', {pid: pid, room_id: app.current_room}); } else { - this.children[1].className = 'icon-star-empty'; + this.children[2].className = 'icon-star-empty'; socket.emit('api:posts.unfavourite', {pid: pid, room_id: app.current_room}); } } diff --git a/public/templates/topic.tpl b/public/templates/topic.tpl index 4f7aee5441a7..f6c4d3433346 100644 --- a/public/templates/topic.tpl +++ b/public/templates/topic.tpl @@ -37,7 +37,9 @@ - +