v1.18.x
psychobunny 11 years ago
parent cecd3fe969
commit 3c63b135c7

@ -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.');
});
}
});
});

Loading…
Cancel
Save