diff options
Diffstat (limited to 'view/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); } |