this fixes #13

This commit is contained in:
Baris Usakli
2013-06-20 12:13:46 -04:00
parent 9e7e0f6579
commit a7bce12887
2 changed files with 6 additions and 4 deletions

View File

@@ -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});
}
}