aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-26 19:32:12 -0700
committerfriendica <info@friendica.com>2014-10-26 19:32:12 -0700
commit655c3e1b4784f4bc37af1e1db0d7bcf313e71e66 (patch)
tree83b8d1029a9c0b0191120f6b5bf5e71b65b493a9 /view/js
parentd2af45d2066565a5eab31b5105b874ee98f10364 (diff)
downloadvolse-hubzilla-655c3e1b4784f4bc37af1e1db0d7bcf313e71e66.tar.gz
volse-hubzilla-655c3e1b4784f4bc37af1e1db0d7bcf313e71e66.tar.bz2
volse-hubzilla-655c3e1b4784f4bc37af1e1db0d7bcf313e71e66.zip
put privacy role selector in settings page. Change visibility of various permissions items accordingly.
Diffstat (limited to 'view/js')
-rw-r--r--view/js/mod_settings.js16
1 files changed, 12 insertions, 4 deletions
diff --git a/view/js/mod_settings.js b/view/js/mod_settings.js
index 77c9d0ced..87c8c3a2b 100644
--- a/view/js/mod_settings.js
+++ b/view/js/mod_settings.js
@@ -3,10 +3,18 @@ var ispublic = aStr['everybody'] ;
$(document).ready(function() {
- $("a#settings-default-perms-menu").colorbox({
- 'inline' : true,
- 'transition' : 'elastic'
- });
+ $("a#settings-default-perms-menu").colorbox({
+ 'inline' : true,
+ 'transition' : 'elastic'
+ });
+
+ $("#privacy-role-select").change(function() {
+ var role = $("#privacy-role-select").val();
+ if(role == 'custom')
+ $('#advanced-perm').show();
+ else
+ $('#advanced-perm').hide();
+ });
$('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
var selstr;