auto-submit connection edit form when quick permissions are applied

This commit is contained in:
friendica 2013-02-07 15:02:24 -08:00
parent 57aa2449e7
commit d66825c734
4 changed files with 8 additions and 4 deletions

View File

@ -1 +1 @@
2013-02-06.223 2013-02-07.224

View File

@ -34,7 +34,7 @@ function connectFullShare() {
$('#me_id_perms_post_mail').attr('checked','checked'); $('#me_id_perms_post_mail').attr('checked','checked');
$('#me_id_perms_chat').attr('checked','checked'); $('#me_id_perms_chat').attr('checked','checked');
$('#me_id_perms_view_storage').attr('checked','checked'); $('#me_id_perms_view_storage').attr('checked','checked');
$('#abook-edit-form').submit();
} }
function connectCautiousShare() { function connectCautiousShare() {
@ -46,6 +46,7 @@ function connectCautiousShare() {
$('#me_id_perms_send_stream').attr('checked','checked'); $('#me_id_perms_send_stream').attr('checked','checked');
$('#me_id_perms_post_comments').attr('checked','checked'); $('#me_id_perms_post_comments').attr('checked','checked');
$('#me_id_perms_post_mail').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_comments').attr('checked','checked');
$('#me_id_perms_post_mail').attr('checked','checked'); $('#me_id_perms_post_mail').attr('checked','checked');
$('#me_id_perms_tag_deliver').attr('checked','checked'); $('#me_id_perms_tag_deliver').attr('checked','checked');
$('#abook-edit-form').submit();
} }
function connectFollowOnly() { function connectFollowOnly() {
$('#me_id_perms_send_stream').attr('checked','checked'); $('#me_id_perms_send_stream').attr('checked','checked');
$('#abook-edit-form').submit();
} }

View File

@ -29,7 +29,7 @@ $slide
<h3>$permlbl</h3> <h3>$permlbl</h3>
<form action="connections/$contact_id" method="post" > <form id="abook-edit-form" action="connections/$contact_id" method="post" >
<input type="hidden" name="contact_id" value="$contact_id"> <input type="hidden" name="contact_id" value="$contact_id">
<input id="contact-closeness-mirror" type="hidden" name="closeness" value="$close" /> <input id="contact-closeness-mirror" type="hidden" name="closeness" value="$close" />

View File

@ -34,7 +34,7 @@
<h3>{{$permlbl}}</h3> <h3>{{$permlbl}}</h3>
<form action="connections/{{$contact_id}}" method="post" > <form id="abook-edit-form" action="connections/{{$contact_id}}" method="post" >
<input type="hidden" name="contact_id" value="{{$contact_id}}"> <input type="hidden" name="contact_id" value="{{$contact_id}}">
<input id="contact-closeness-mirror" type="hidden" name="closeness" value="{{$close}}" /> <input id="contact-closeness-mirror" type="hidden" name="closeness" value="{{$close}}" />