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

@@ -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();
}