From aafbd11a375c97c66d8c5eab6966119b20219e50 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 21 Apr 2014 15:41:04 -0700 Subject: [PATCH] Setting to undo/clear auto permissions --- mod/connedit.php | 1 + version.inc | 2 +- view/js/mod_connedit.js | 9 +++++++++ view/tpl/abook_edit.tpl | 11 ++++++----- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/mod/connedit.php b/mod/connedit.php index 198a66b56..61bb62766 100644 --- a/mod/connedit.php +++ b/mod/connedit.php @@ -482,6 +482,7 @@ function connedit_content(&$a) { '$them' => t('Their Settings'), '$me' => t('My Settings'), '$perms' => $perms, + '$clear' => t('Clear/Disable Automatic Permissions'), '$forum' => t('Forum Members'), '$soapbox' => t('Soapbox'), '$full' => t('Full Sharing (typical social network permissions)'), diff --git a/version.inc b/version.inc index b701accdf..8b6f8c940 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2014-04-20.651 +2014-04-21.652 diff --git a/view/js/mod_connedit.js b/view/js/mod_connedit.js index 64240abb8..e66c26cda 100644 --- a/view/js/mod_connedit.js +++ b/view/js/mod_connedit.js @@ -80,6 +80,15 @@ function connectForum() { } +function connectClear() { + $('.abook-edit-me').each(function() { + if(! $(this).is(':disabled')) + $(this).removeAttr('checked'); + }); + $('.abook-permschange').show(); + $('.abook-permschange').html(aStr['permschange']); +} + function connectSoapBox() { $('.abook-edit-me').each(function() { if(! $(this).is(':disabled')) diff --git a/view/tpl/abook_edit.tpl b/view/tpl/abook_edit.tpl index b7a02c15e..b8b01df4c 100755 --- a/view/tpl/abook_edit.tpl +++ b/view/tpl/abook_edit.tpl @@ -67,12 +67,13 @@

{{$quick}}