aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_connedit.js
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-02-07 17:17:38 -0800
committerzotlabs <mike@macgirvin.com>2017-02-07 17:17:38 -0800
commit723b51c931e7365b3c8d531bf25c6c02308cba9f (patch)
tree20e525d00f6483bdd5295a374188de4687d3e142 /view/js/mod_connedit.js
parenta6160e30262107ff73c253ecc46fffaa2986f79b (diff)
downloadvolse-hubzilla-723b51c931e7365b3c8d531bf25c6c02308cba9f.tar.gz
volse-hubzilla-723b51c931e7365b3c8d531bf25c6c02308cba9f.tar.bz2
volse-hubzilla-723b51c931e7365b3c8d531bf25c6c02308cba9f.zip
provide a few system defined permcats; will require a permission editor page to define new (personal) ones.
Diffstat (limited to 'view/js/mod_connedit.js')
-rw-r--r--view/js/mod_connedit.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/view/js/mod_connedit.js b/view/js/mod_connedit.js
index d750f3a2f..4739c490c 100644
--- a/view/js/mod_connedit.js
+++ b/view/js/mod_connedit.js
@@ -17,6 +17,15 @@ $(document).ready(function() {
connectFullShare();
});
+
+ $('#id_permcat').change(function() {
+ $('.loading-role-rotator').spin(true);
+ var permName = $('#id_permcat').val();
+ loadAbookRole(permName);
+ });
+
+
+
$(document).on('click', '.vcard-header, .vcard-cancel-btn', updateView);
$(document).on('click', '.add-field', doAdd);
$(document).on('click', '.remove-field', doRemove);
@@ -119,6 +128,7 @@ function loadAbookRole(name) {
if(this.value)
$('#me_id_perms_' + this.name).attr('checked','checked');
});
+ $('.loading-role-rotator').spin(false);
});
}