client/code/admin/invitecodes.js
Function setupInviteCodes
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setupInviteCodes () {
$body.on('submit', '#admin-invites form', function (event) {
// Prevent the 'enter' key on some browsers from
// submitting the form in the wrong way
event.preventDefault()