more unread changes

This commit is contained in:
Baris Soner Usakli
2014-02-11 18:58:46 -05:00
parent 859ca8dd18
commit a274a8cc12
4 changed files with 14 additions and 6 deletions

View File

@@ -114,10 +114,12 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
});
$('.markAsUnreadForAll').on('click', function() {
var btn = $(this);
socket.emit('topics.markAsUnreadForAll', tid, function(err) {
if(err) {
return app.alertError(err.message);
}
btn.parents('.thread-tools.open').find('.dropdown-toggle').trigger('click');
});
return false;
})