mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 16:58:21 -05:00
Fix permission control in the moderator invitation form.
This commit is contained in:
@@ -325,6 +325,11 @@ r.ui.PermissionEditor.prototype = $.extend(new r.ui.Base(), {
|
||||
|
||||
hide: function() {
|
||||
if (this.$menu) {
|
||||
if (this.embedded) {
|
||||
this.original_perms = this._getNewPerms()
|
||||
this.$permissions_field
|
||||
.val(this._serializePerms(this.original_perms))
|
||||
}
|
||||
this.$menu.remove()
|
||||
this.$menu = null
|
||||
this.updateSummary()
|
||||
|
||||
Reference in New Issue
Block a user