diff options
author | friendica <info@friendica.com> | 2013-05-20 21:33:29 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-05-20 21:33:29 -0700 |
commit | 2302b285bd0c00b26f431004c6e7ecb7e70e1c77 (patch) | |
tree | 508040038d677e42e1199714179a308d4aa2134a /view/js/mod_settings.js | |
parent | ab10db7e34d1e7eaa5b2a633b3185b28fd16175c (diff) | |
download | volse-hubzilla-2302b285bd0c00b26f431004c6e7ecb7e70e1c77.tar.gz volse-hubzilla-2302b285bd0c00b26f431004c6e7ecb7e70e1c77.tar.bz2 volse-hubzilla-2302b285bd0c00b26f431004c6e7ecb7e70e1c77.zip |
add the "publish in directory" setting to the privacy macros
Diffstat (limited to 'view/js/mod_settings.js')
-rw-r--r-- | view/js/mod_settings.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/view/js/mod_settings.js b/view/js/mod_settings.js index 1eabdd81f..955fcc27a 100644 --- a/view/js/mod_settings.js +++ b/view/js/mod_settings.js @@ -37,6 +37,9 @@ function channel_privacy_macro(n) { $('#id_write_storage option').eq(0).attr('selected','selected'); $('#id_write_pages option').eq(0).attr('selected','selected'); $('#id_delegate 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); } if(n == 1) { $('#id_view_stream option').eq(1).attr('selected','selected'); @@ -55,6 +58,9 @@ function channel_privacy_macro(n) { $('#id_write_storage option').eq(1).attr('selected','selected'); $('#id_write_pages option').eq(1).attr('selected','selected'); $('#id_delegate 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); } if(n == 2) { $('#id_view_stream option').eq(5).attr('selected','selected'); @@ -73,6 +79,9 @@ function channel_privacy_macro(n) { $('#id_write_storage option').eq(1).attr('selected','selected'); $('#id_write_pages option').eq(1).attr('selected','selected'); $('#id_delegate option').eq(0).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); } if(n == 3) { $('#id_view_stream option').eq(5).attr('selected','selected'); @@ -91,6 +100,9 @@ function channel_privacy_macro(n) { $('#id_write_storage option').eq(2).attr('selected','selected'); $('#id_write_pages option').eq(2).attr('selected','selected'); $('#id_delegate option').eq(0).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); } |