auto-submit connection edit form when quick permissions are applied
This commit is contained in:
		| @@ -1 +1 @@ | |||||||
| 2013-02-06.223 | 2013-02-07.224 | ||||||
|   | |||||||
| @@ -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(); | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -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" /> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -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}}" /> | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user