diff options
author | Mario <mario@mariovavti.com> | 2020-11-16 09:28:18 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-11-16 09:28:18 +0000 |
commit | e7c83a81c79235327cbbcb5382146332ba14a684 (patch) | |
tree | 34741f61b68040d0741cbc140132ec46c6c89c85 | |
parent | dcf883075281e6ad8c66c1f0bf5ec93e67bf83a7 (diff) | |
download | volse-hubzilla-e7c83a81c79235327cbbcb5382146332ba14a684.tar.gz volse-hubzilla-e7c83a81c79235327cbbcb5382146332ba14a684.tar.bz2 volse-hubzilla-e7c83a81c79235327cbbcb5382146332ba14a684.zip |
work around an edge case in acl selector
-rw-r--r-- | view/js/acl.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/view/js/acl.js b/view/js/acl.js index 4597184ea..940fdaa44 100644 --- a/view/js/acl.js +++ b/view/js/acl.js @@ -340,7 +340,13 @@ ACL.prototype.update_view = function(value) { that.list.hide(); //hide acl-list that.info.hide(); //show acl-info that.selected_id = that.contact_ids[that.allow_cid[0]]; - that.update_select('\\^' + that.selected_id); + + if(that.acl_select.find('option[id="\\^' + that.selected_id + '"]').length === 0) { + that.update_view('custom'); + } + else { + that.update_select('\\^' + that.selected_id); + } /* jot acl */ $('#jot-perms-icon, #dialog-perms-icon, #' + that.form_id[0].id + ' .jot-perms-icon').removeClass('fa-unlock').addClass('fa-lock'); |