aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/acl.js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js/acl.js')
-rw-r--r--view/js/acl.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/view/js/acl.js b/view/js/acl.js
index 175462250..9b08571ae 100644
--- a/view/js/acl.js
+++ b/view/js/acl.js
@@ -48,6 +48,7 @@ function ACL(backend_url) {
$(document).on('focus', '.acl-form', that.get_form_data);
$(document).on('click', '.acl-form', that.get_form_data);
+ $(document).on('click', '.acl-form-trigger', that.get_form_data);
$(document).on('click','.acl-button-show',that.on_button_show);
$(document).on('click','.acl-button-hide',that.on_button_hide);
@@ -71,10 +72,10 @@ ACL.prototype.get_form_data = function(event) {
console.log(form_id);
- that.allow_cid = ($(this).data('allow_cid') || []);
- that.allow_gid = ($(this).data('allow_gid') || []);
- that.deny_cid = ($(this).data('deny_cid') || []);
- that.deny_gid = ($(this).data('deny_gid') || []);
+ that.allow_cid = (that.form_id.data('allow_cid') || []);
+ that.allow_gid = (that.form_id.data('allow_gid') || []);
+ that.deny_cid = (that.form_id.data('deny_cid') || []);
+ that.deny_gid = (that.form_id.data('deny_gid') || []);
that.update_view();
that.on_submit();