aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/js/mod_connedit.js10
-rwxr-xr-xview/tpl/abook_edit.tpl3
2 files changed, 13 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);
});
}
diff --git a/view/tpl/abook_edit.tpl b/view/tpl/abook_edit.tpl
index 6f89e2199..231841659 100755
--- a/view/tpl/abook_edit.tpl
+++ b/view/tpl/abook_edit.tpl
@@ -473,6 +473,9 @@
{{if $self}}{{$permnote_self}}{{/if}}
</div>
+ <div class="loading-role-rotator"></div>
+ {{include file="field_select.tpl" field=$permcat}}
+
<table id="perms-tool-table" class=form-group>
<tr>
<td></td>