diff options
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/mod_settings.js | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/view/js/mod_settings.js b/view/js/mod_settings.js index bcfa9b574..1eabdd81f 100644 --- a/view/js/mod_settings.js +++ b/view/js/mod_settings.js @@ -19,3 +19,81 @@ $(document).ready(function() { }); +function channel_privacy_macro(n) { + if(n == 0) { + $('#id_view_stream option').eq(0).attr('selected','selected'); + $('#id_view_profile option').eq(0).attr('selected','selected'); + $('#id_view_photos option').eq(0).attr('selected','selected'); + $('#id_view_contacts option').eq(0).attr('selected','selected'); + $('#id_view_storage option').eq(0).attr('selected','selected'); + $('#id_view_pages option').eq(0).attr('selected','selected'); + $('#id_send_stream option').eq(0).attr('selected','selected'); + $('#id_post_wall option').eq(0).attr('selected','selected'); + $('#id_post_comments option').eq(0).attr('selected','selected'); + $('#id_post_mail option').eq(0).attr('selected','selected'); + $('#id_post_photos option').eq(0).attr('selected','selected'); + $('#id_tag_deliver option').eq(0).attr('selected','selected'); + $('#id_chat option').eq(0).attr('selected','selected'); + $('#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'); + } + if(n == 1) { + $('#id_view_stream option').eq(1).attr('selected','selected'); + $('#id_view_profile option').eq(1).attr('selected','selected'); + $('#id_view_photos option').eq(1).attr('selected','selected'); + $('#id_view_contacts option').eq(1).attr('selected','selected'); + $('#id_view_storage option').eq(1).attr('selected','selected'); + $('#id_view_pages option').eq(1).attr('selected','selected'); + $('#id_send_stream option').eq(1).attr('selected','selected'); + $('#id_post_wall option').eq(1).attr('selected','selected'); + $('#id_post_comments option').eq(1).attr('selected','selected'); + $('#id_post_mail option').eq(1).attr('selected','selected'); + $('#id_post_photos option').eq(1).attr('selected','selected'); + $('#id_tag_deliver option').eq(1).attr('selected','selected'); + $('#id_chat option').eq(1).attr('selected','selected'); + $('#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'); + } + if(n == 2) { + $('#id_view_stream option').eq(5).attr('selected','selected'); + $('#id_view_profile option').eq(5).attr('selected','selected'); + $('#id_view_photos option').eq(5).attr('selected','selected'); + $('#id_view_contacts option').eq(5).attr('selected','selected'); + $('#id_view_storage option').eq(5).attr('selected','selected'); + $('#id_view_pages option').eq(5).attr('selected','selected'); + $('#id_send_stream option').eq(1).attr('selected','selected'); + $('#id_post_wall option').eq(1).attr('selected','selected'); + $('#id_post_comments option').eq(1).attr('selected','selected'); + $('#id_post_mail option').eq(1).attr('selected','selected'); + $('#id_post_photos option').eq(1).attr('selected','selected'); + $('#id_tag_deliver option').eq(1).attr('selected','selected'); + $('#id_chat option').eq(1).attr('selected','selected'); + $('#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'); + } + if(n == 3) { + $('#id_view_stream option').eq(5).attr('selected','selected'); + $('#id_view_profile option').eq(5).attr('selected','selected'); + $('#id_view_photos option').eq(5).attr('selected','selected'); + $('#id_view_contacts option').eq(5).attr('selected','selected'); + $('#id_view_storage option').eq(5).attr('selected','selected'); + $('#id_view_pages option').eq(5).attr('selected','selected'); + $('#id_send_stream option').eq(4).attr('selected','selected'); + $('#id_post_wall option').eq(4).attr('selected','selected'); + $('#id_post_comments option').eq(4).attr('selected','selected'); + $('#id_post_mail option').eq(4).attr('selected','selected'); + $('#id_post_photos option').eq(2).attr('selected','selected'); + $('#id_tag_deliver option').eq(1).attr('selected','selected'); + $('#id_chat option').eq(4).attr('selected','selected'); + $('#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'); + + } + + + +}
\ No newline at end of file |