feat: allow flagging of user acounts from post tools menu

This commit is contained in:
Julian Lam
2020-06-29 19:49:48 -04:00
parent e7ec5550f3
commit 6931f29d53
2 changed files with 12 additions and 1 deletions

View File

@@ -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);