can mark topic unread for all

This commit is contained in:
Baris Soner Usakli
2014-01-17 17:26:07 -05:00
parent 25b50323fa
commit fd92d7b02a
4 changed files with 22 additions and 0 deletions

View File

@@ -88,6 +88,15 @@ define(['composer'], function(composer) {
return false;
});
$('.markAsUnreadForAll').on('click', function() {
socket.emit('topics.markAsUnreadForAll', tid, function(err) {
if(err) {
return app.alertError(err.message);
}
});
return false;
})
moveThreadModal.on('shown.bs.modal', function() {
var loadingEl = document.getElementById('categories-loading');