This commit is contained in:
barisusakli
2016-02-01 19:52:26 +02:00
parent 6b9a07bbcf
commit 2b5f9d075b
3 changed files with 9 additions and 2 deletions

View File

@@ -54,7 +54,12 @@ define('forum/topic/threadTools', [
});
topicContainer.on('click', '[component="topic/mark-unread"]', function() {
socket.emit('topics.markUnread', tid);
socket.emit('topics.markUnread', tid, function(err) {
if (err) {
return app.alertError(err);
}
app.alertSuccess('[[topic:mark_unread.success]]');
});
return false;
});