From 2302b285bd0c00b26f431004c6e7ecb7e70e1c77 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 20 May 2013 21:33:29 -0700 Subject: add the "publish in directory" setting to the privacy macros --- view/js/mod_settings.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'view/js') 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); } -- cgit v1.2.3