Make ModList narrower and remove sendmessage col.

This commit is contained in:
Logan Hanks
2013-02-21 16:55:37 -08:00
parent 1e4e678462
commit 6a59536f4d
3 changed files with 5 additions and 9 deletions

View File

@@ -2987,7 +2987,7 @@ class ModList(UserList):
self.type: c.site.moderators_with_perms(),
self.invite_type: c.site.moderator_invites_with_perms(),
}
self.cells = ('user', 'permissions', 'permissionsctl', 'sendmessage')
self.cells = ('user', 'permissions', 'permissionsctl')
if editable:
self.cells += ('remove',)

View File

@@ -6420,7 +6420,7 @@ body.gold .buttons li.comment-save-button { display: inline; }
display: inline-block;
font-size: small;
text-align: right;
width: 44ex;
width: 36ex;
}
#moderator_invite .permissions { width: 30ex; }
.permissions > form { display: none; }

View File

@@ -360,13 +360,9 @@ r.ui.PermissionEditor.prototype = $.extend(new r.ui.Base(), {
spans.push(this._renderBit("all")
.toggleClass("added", this.original_perms.all != true))
} else {
if (this.original_perms.all) {
if (!this.embedded || !new_perms) {
spans.push(this._renderBit("all")
.toggleClass("removed",
!this.embedded && new_perms != null))
}
} else {
if (this.original_perms.all && !new_perms) {
spans.push(this._renderBit("all"))
} else if (!this.original_perms.all) {
for (var perm in this.original_perms) {
if (this.original_perms[perm]) {
if (this.embedded && !(new_perms && !new_perms[perm])) {