a bunch of changes here... allowing user profiles to be flagged, #5232

This commit is contained in:
Julian Lam
2016-12-07 12:07:22 -05:00
parent 57fcb92bbc
commit 5dd892bd01
13 changed files with 133 additions and 39 deletions

View File

@@ -167,10 +167,11 @@ define('forum/topic/postTools', ['share', 'navigator', 'components', 'translator
postContainer.on('click', '[component="post/flag"]', function () {
var pid = getData($(this), 'data-pid');
var username = getData($(this), 'data-username');
var userslug = getData($(this), 'data-userslug');
require(['forum/topic/flag'], function (flag) {
flag.showFlagModal(pid, username, userslug);
require(['flags'], function (flags) {
flags.showFlagModal({
type: 'post',
id: pid
});
});
});