diff options
author | friendica <info@friendica.com> | 2013-02-07 15:02:24 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-02-07 15:02:24 -0800 |
commit | d66825c7343777c742252548694d993251259be3 (patch) | |
tree | d8433eebfb5582dbc762725ede967968a297f2ef | |
parent | 57aa2449e72062894e979d908871177067fc5a06 (diff) | |
download | volse-hubzilla-d66825c7343777c742252548694d993251259be3.tar.gz volse-hubzilla-d66825c7343777c742252548694d993251259be3.tar.bz2 volse-hubzilla-d66825c7343777c742252548694d993251259be3.zip |
auto-submit connection edit form when quick permissions are applied
-rw-r--r-- | version.inc | 2 | ||||
-rw-r--r-- | view/js/mod_connections.js | 6 | ||||
-rw-r--r-- | view/tpl/abook_edit.tpl | 2 | ||||
-rw-r--r-- | view/tpl/smarty3/abook_edit.tpl | 2 |
4 files changed, 8 insertions, 4 deletions
diff --git a/version.inc b/version.inc index 954877f42..6cab53b99 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2013-02-06.223 +2013-02-07.224 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(); } diff --git a/view/tpl/abook_edit.tpl b/view/tpl/abook_edit.tpl index e77458478..76f35a9c0 100644 --- a/view/tpl/abook_edit.tpl +++ b/view/tpl/abook_edit.tpl @@ -29,7 +29,7 @@ $slide <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 id="contact-closeness-mirror" type="hidden" name="closeness" value="$close" /> diff --git a/view/tpl/smarty3/abook_edit.tpl b/view/tpl/smarty3/abook_edit.tpl index 6331aa46c..bafe95b48 100644 --- a/view/tpl/smarty3/abook_edit.tpl +++ b/view/tpl/smarty3/abook_edit.tpl @@ -34,7 +34,7 @@ <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 id="contact-closeness-mirror" type="hidden" name="closeness" value="{{$close}}" /> |