From d66825c7343777c742252548694d993251259be3 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 7 Feb 2013 15:02:24 -0800 Subject: auto-submit connection edit form when quick permissions are applied --- view/js/mod_connections.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'view/js/mod_connections.js') diff --git a/view/js/mod_connections.js b/view/js/mod_connections.js index 33fc61883..57001f0be 100644 --- a/view/js/mod_connections.js +++ b/view/js/mod_connections.js @@ -34,7 +34,7 @@ function connectFullShare() { $('#me_id_perms_post_mail').attr('checked','checked'); $('#me_id_perms_chat').attr('checked','checked'); $('#me_id_perms_view_storage').attr('checked','checked'); - + $('#abook-edit-form').submit(); } function connectCautiousShare() { @@ -46,6 +46,7 @@ function connectCautiousShare() { $('#me_id_perms_send_stream').attr('checked','checked'); $('#me_id_perms_post_comments').attr('checked','checked'); $('#me_id_perms_post_mail').attr('checked','checked'); + $('#abook-edit-form').submit(); } @@ -61,11 +62,14 @@ function connectForum() { $('#me_id_perms_post_comments').attr('checked','checked'); $('#me_id_perms_post_mail').attr('checked','checked'); $('#me_id_perms_tag_deliver').attr('checked','checked'); + $('#abook-edit-form').submit(); + } function connectFollowOnly() { $('#me_id_perms_send_stream').attr('checked','checked'); + $('#abook-edit-form').submit(); } -- cgit v1.2.3