diff options
Diffstat (limited to 'view')
-rw-r--r-- | view/css/mod_connedit.css | 2 | ||||
-rw-r--r-- | view/js/mod_connedit.js | 28 | ||||
-rwxr-xr-x | view/tpl/abook_edit.tpl | 1 | ||||
-rwxr-xr-x | view/tpl/js_strings.tpl | 1 |
4 files changed, 31 insertions, 1 deletions
diff --git a/view/css/mod_connedit.css b/view/css/mod_connedit.css index f6da96433..83f167915 100644 --- a/view/css/mod_connedit.css +++ b/view/css/mod_connedit.css @@ -14,7 +14,7 @@ margin-bottom: 5px !important; } -.abook-pending-contact { +.abook-pending-contact, .abook-permschange { background: orange; font-weight: bold; margin: 10px; diff --git a/view/js/mod_connedit.js b/view/js/mod_connedit.js index 7a33952dc..64240abb8 100644 --- a/view/js/mod_connedit.js +++ b/view/js/mod_connedit.js @@ -1,4 +1,20 @@ +$(document).ready(function() { + if(typeof(after_following) !== 'undefined' && after_following) + connectFullShare(); + + $('#id_pending').click(function() { + connectFullShare(); + }); + + $('.abook-edit-me').click(function() { + $('.abook-permschange').show(); + $('.abook-permschange').html(aStr['permschange']); + }); + + +}); + function connectFullShare() { $('.abook-edit-me').each(function() { if(! $(this).is(':disabled')) @@ -18,6 +34,8 @@ function connectFullShare() { $('#me_id_perms_view_storage').attr('checked','checked'); $('#me_id_perms_republish').attr('checked','checked'); + $('.abook-permschange').show(); + $('.abook-permschange').html(aStr['permschange']); } function connectCautiousShare() { @@ -34,6 +52,9 @@ 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-permschange').show(); + $('.abook-permschange').html(aStr['permschange']); + } function connectForum() { @@ -54,6 +75,8 @@ function connectForum() { $('#me_id_perms_post_mail').attr('checked','checked'); $('#me_id_perms_tag_deliver').attr('checked','checked'); $('#me_id_perms_republish').attr('checked','checked'); + $('.abook-permschange').show(); + $('.abook-permschange').html(aStr['permschange']); } @@ -69,6 +92,8 @@ function connectSoapBox() { $('#me_id_perms_view_contacts').attr('checked','checked'); $('#me_id_perms_view_storage').attr('checked','checked'); $('#me_id_perms_view_pages').attr('checked','checked'); + $('.abook-permschange').show(); + $('.abook-permschange').html(aStr['permschange']); } @@ -79,5 +104,8 @@ function connectFollowOnly() { }); $('#me_id_perms_send_stream').attr('checked','checked'); + $('.abook-permschange').show(); + $('.abook-permschange').html(aStr['permschange']); + } diff --git a/view/tpl/abook_edit.tpl b/view/tpl/abook_edit.tpl index 274d0d5de..b7a02c15e 100755 --- a/view/tpl/abook_edit.tpl +++ b/view/tpl/abook_edit.tpl @@ -34,6 +34,7 @@ <input type="hidden" name="contact_id" value="{{$contact_id}}"> <input id="contact-closeness-mirror" type="hidden" name="closeness" value="{{$close}}" /> +<div class="abook-permschange" style="display: none;"></div> {{if $is_pending}} <div class="abook-pending-contact"> diff --git a/view/tpl/js_strings.tpl b/view/tpl/js_strings.tpl index fe5228ee9..cac5be65b 100755 --- a/view/tpl/js_strings.tpl +++ b/view/tpl/js_strings.tpl @@ -13,6 +13,7 @@ 'everybody' : "{{$everybody}}", 'passphrase' : "{{$passphrase}}", 'passhint' : "{{$passhint}}", + 'permschange' : "{{$permschange}}", 't01' : "{{$t01}}", 't02' : "{{$t02}}", |