diff options
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/icon_translate.js | 1 | ||||
-rw-r--r-- | view/js/main.js | 2 | ||||
-rw-r--r-- | view/js/mod_connedit.js | 28 |
3 files changed, 30 insertions, 1 deletions
diff --git a/view/js/icon_translate.js b/view/js/icon_translate.js index 45deef05b..930d3b265 100644 --- a/view/js/icon_translate.js +++ b/view/js/icon_translate.js @@ -53,4 +53,5 @@ $(document).ready(function() { $('.icon-circle').addClass(''); $('.icon-bookmark').addClass(''); $('.icon-fullscreen').addClass(''); + $('.icon-share').addClass(''); });
\ No newline at end of file diff --git a/view/js/main.js b/view/js/main.js index fa96596f4..5f88ea9ca 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -535,7 +535,7 @@ function updateConvItems(mode,data) { $(".wall-item-body").each(function() { if($(this).height() > 410) { if(! $(this).hasClass('divmore')) { - $(this).divgrow({ initialHeight: 400, showBrackets: false }); + $(this).divgrow({ initialHeight: 400, moreText: aStr['divgrowmore'], lessText: aStr['divgrowless'], showBrackets: false }); $(this).addClass('divmore'); } } 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']); + } |