+ Add new page for gogs binduser.

This commit is contained in:
caoyanyi
2023-08-14 09:08:31 +08:00
parent b97434a048
commit 5e0af1532d
4 changed files with 102 additions and 0 deletions
+16
View File
@@ -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;
}