mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
closes #939
This commit is contained in:
@@ -443,6 +443,8 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
||||
});
|
||||
|
||||
$('#post-container').on('click', '.flag', function() {
|
||||
bootbox.confirm('Are you sure you want to flag this post?', function(confirm) {
|
||||
if (confirm) {
|
||||
var pid = $(this).parents('.post-row').attr('data-pid');
|
||||
|
||||
socket.emit('posts.flag', pid, function(err) {
|
||||
@@ -451,6 +453,8 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
||||
}
|
||||
app.alertSuccess('This post has been flagged for moderation.');
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user