+ Add new page for gogs binduser.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
window.setUserEmail = function()
|
||||
{
|
||||
let email = '';
|
||||
const account = $(this).val();
|
||||
if(account && zentaoUsers[account]) email = zentaoUsers[account].email;
|
||||
|
||||
$(this).closest('.dtable-cell').prev().find('.dtable-cell-content').text(email);
|
||||
}
|
||||
|
||||
window.renderGitlabUser = function(result, {row})
|
||||
{
|
||||
const gitlabID = row.data.gitlabID;
|
||||
result.push({html: `<input type="hidden" name='gogsUserNames[]' value='${gitlabID}'>`});
|
||||
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user