mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
feat: allow flagging of user acounts from post tools menu
This commit is contained in:
@@ -129,6 +129,16 @@ define('forum/topic/postTools', [
|
||||
});
|
||||
});
|
||||
|
||||
postContainer.on('click', '[component="post/flagUser"]', function () {
|
||||
var uid = getData($(this), 'data-uid');
|
||||
require(['flags'], function (flags) {
|
||||
flags.showFlagModal({
|
||||
type: 'user',
|
||||
id: uid,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
postContainer.on('click', '[component="post/edit"]', function () {
|
||||
var btn = $(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user