aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_connections.js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js/mod_connections.js')
-rw-r--r--view/js/mod_connections.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/view/js/mod_connections.js b/view/js/mod_connections.js
index 6a7f2eaed..cb4badff5 100644
--- a/view/js/mod_connections.js
+++ b/view/js/mod_connections.js
@@ -19,3 +19,33 @@ $(".autocomplete-w1 .selected").keyup(function(event){
$("#contacts-search-submit").click();
}
});
+
+
+function connectFullShare() {
+ $('#me_id_perms_view_stream').attr('checked','checked');
+ $('#me_id_perms_view_profile').attr('checked','checked');
+ $('#me_id_perms_view_photos').attr('checked','checked');
+ $('#me_id_perms_view_contacts').attr('checked','checked');
+ $('#me_id_perms_send_stream').attr('checked','checked');
+ $('#me_id_perms_post_wall').attr('checked','checked');
+ $('#me_id_perms_post_comments').attr('checked','checked');
+ $('#me_id_perms_post_mail').attr('checked','checked');
+ $('#me_id_perms_chat').attr('checked','checked');
+
+}
+
+function connectCautiousShare() {
+ $('#me_id_perms_view_stream').attr('checked','checked');
+ $('#me_id_perms_view_profile').attr('checked','checked');
+ $('#me_id_perms_view_photos').attr('checked','checked');
+ $('#me_id_perms_send_stream').attr('checked','checked');
+ $('#me_id_perms_post_comments').attr('checked','checked');
+ $('#me_id_perms_post_mail').attr('checked','checked');
+
+}
+
+function connectFollowOnly() {
+ $('#me_id_perms_send_stream').attr('checked','checked');
+
+}
+