aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js/mod_settings.js')
-rw-r--r--view/js/mod_settings.js20
1 files changed, 16 insertions, 4 deletions
diff --git a/view/js/mod_settings.js b/view/js/mod_settings.js
index 4daa7f704..77c9d0ced 100644
--- a/view/js/mod_settings.js
+++ b/view/js/mod_settings.js
@@ -24,6 +24,18 @@ $(document).ready(function() {
});
+/**
+ * 0 nobody
+ * 1 perms_specific
+ * 2 perms_contacts
+ * 3 perms_pending
+ * 4 perms_site
+ * 5 perms_network
+ * 6 perms_authed
+ * 7 perms_public
+ */
+
+
function channel_privacy_macro(n) {
if(n == 0) {
$('#id_view_stream option').eq(0).attr('selected','selected');
@@ -43,7 +55,7 @@ function channel_privacy_macro(n) {
$('#id_write_pages option').eq(0).attr('selected','selected');
$('#id_delegate option').eq(0).attr('selected','selected');
$('#id_republish option').eq(0).attr('selected','selected');
- $('#id_bookmark option').eq(0).attr('selected','selected');
+ $('#id_post_like option').eq(0).attr('selected','selected');
$('#id_profile_in_directory_onoff .off').removeClass('hidden');
$('#id_profile_in_directory_onoff .on').addClass('hidden');
$('#id_profile_in_directory').val(0);
@@ -66,7 +78,7 @@ function channel_privacy_macro(n) {
$('#id_write_pages option').eq(1).attr('selected','selected');
$('#id_delegate option').eq(0).attr('selected','selected');
$('#id_republish option').eq(0).attr('selected','selected');
- $('#id_bookmark option').eq(1).attr('selected','selected');
+ $('#id_post_like option').eq(1).attr('selected','selected');
$('#id_profile_in_directory_onoff .off').removeClass('hidden');
$('#id_profile_in_directory_onoff .on').addClass('hidden');
$('#id_profile_in_directory').val(0);
@@ -89,7 +101,7 @@ function channel_privacy_macro(n) {
$('#id_write_pages option').eq(0).attr('selected','selected');
$('#id_delegate option').eq(0).attr('selected','selected');
$('#id_republish option').eq(1).attr('selected','selected');
- $('#id_bookmark option').eq(1).attr('selected','selected');
+ $('#id_post_like option').eq(5).attr('selected','selected');
$('#id_profile_in_directory_onoff .on').removeClass('hidden');
$('#id_profile_in_directory_onoff .off').addClass('hidden');
$('#id_profile_in_directory').val(1);
@@ -112,7 +124,7 @@ function channel_privacy_macro(n) {
$('#id_write_pages option').eq(2).attr('selected','selected');
$('#id_delegate option').eq(0).attr('selected','selected');
$('#id_republish option').eq(5).attr('selected','selected');
- $('#id_bookmark option').eq(5).attr('selected','selected');
+ $('#id_post_like option').eq(6).attr('selected','selected');
$('#id_profile_in_directory_onoff .on').removeClass('hidden');
$('#id_profile_in_directory_onoff .off').addClass('hidden');
$('#id_profile_in_directory').val(1);