fixed some whitespace issues and made the admin check return early, in its own block

v1.18.x
Julian Lam 10 years ago
parent d10fd6248e
commit eb5be2f671

@ -117,7 +117,8 @@
helpers.membershipBtn = function(groupObj) {
if (groupObj.name === 'administrators') {
return '';
} else {
}
if (groupObj.isMember) {
return '<button class="btn btn-danger" data-action="leave" data-group="' + groupObj.displayName + '"><i class="fa fa-times"></i> Leave Group</button>';
} else {
@ -129,7 +130,6 @@
return '<button class="btn btn-success" data-action="join" data-group="' + groupObj.displayName + '"><i class="fa fa-plus"></i> Join Group</button>';
}
}
}
};
helpers.spawnPrivilegeStates = function(member, privileges) {

Loading…
Cancel
Save