closes #3933, closes #3934

This commit is contained in:
barisusakli
2015-12-10 09:00:46 +02:00
parent cdca09a7b2
commit 0ffd5254ad
2 changed files with 16 additions and 17 deletions

View File

@@ -255,10 +255,12 @@ define('forum/topic/postTools', ['share', 'navigator', 'components', 'translator
pid: post.attr('data-pid'),
room_id: app.currentRoom
}, function(err) {
if (err.message === 'self-vote') {
showVotes(post.attr('data-pid'));
} else {
app.alertError(err.message);
if (err) {
if (err.message === 'self-vote') {
showVotes(post.attr('data-pid'));
} else {
app.alertError(err.message);
}
}
});