aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-07-17 20:54:30 -0700
committerfriendica <info@friendica.com>2014-07-17 20:54:30 -0700
commitb19176169cd93e7aa305296a85e28c8c1c68352b (patch)
treee3e6bb8f78d47d34310ee015a4447612643c2039 /view
parent0cb81714d80e3d51dc4939664425b7d1978b5d06 (diff)
downloadvolse-hubzilla-b19176169cd93e7aa305296a85e28c8c1c68352b.tar.gz
volse-hubzilla-b19176169cd93e7aa305296a85e28c8c1c68352b.tar.bz2
volse-hubzilla-b19176169cd93e7aa305296a85e28c8c1c68352b.zip
provide a specific permission for liking profiles (reuse the obsolete bookmark permission), also remove the unused 'unconnected contacts' view for now.
Diffstat (limited to 'view')
-rw-r--r--view/js/mod_connedit.js3
-rw-r--r--view/js/mod_settings.js20
2 files changed, 19 insertions, 4 deletions
diff --git a/view/js/mod_connedit.js b/view/js/mod_connedit.js
index e66c26cda..4d25bb8c4 100644
--- a/view/js/mod_connedit.js
+++ b/view/js/mod_connedit.js
@@ -33,6 +33,7 @@ function connectFullShare() {
$('#me_id_perms_chat').attr('checked','checked');
$('#me_id_perms_view_storage').attr('checked','checked');
$('#me_id_perms_republish').attr('checked','checked');
+ $('#me_id_perms_post_like').attr('checked','checked');
$('.abook-permschange').show();
$('.abook-permschange').html(aStr['permschange']);
@@ -52,6 +53,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');
+ $('#me_id_perms_post_like').attr('checked','checked');
$('.abook-permschange').show();
$('.abook-permschange').html(aStr['permschange']);
@@ -75,6 +77,7 @@ 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');
+ $('#me_id_perms_post_like').attr('checked','checked');
$('.abook-permschange').show();
$('.abook-permschange').html(aStr['permschange']);
diff --git a/view/js/mod_settings.js b/view/js/mod_settings.js
index 4daa7f704..77c9d0ced 100644
--- a/view/js/mod_settings.js
+++ b/view/js/mod_settings.js
@@ -24,6 +24,18 @@ $(document).ready(function() {
});
+/**
+ * 0 nobody
+ * 1 perms_specific
+ * 2 perms_contacts
+ * 3 perms_pending
+ * 4 perms_site
+ * 5 perms_network
+ * 6 perms_authed
+ * 7 perms_public
+ */
+
+
function channel_privacy_macro(n) {
if(n == 0) {
$('#id_view_stream option').eq(0).attr('selected','selected');
@@ -43,7 +55,7 @@ function channel_privacy_macro(n) {
$('#id_write_pages option').eq(0).attr('selected','selected');
$('#id_delegate option').eq(0).attr('selected','selected');
$('#id_republish option').eq(0).attr('selected','selected');
- $('#id_bookmark option').eq(0).attr('selected','selected');
+ $('#id_post_like option').eq(0).attr('selected','selected');
$('#id_profile_in_directory_onoff .off').removeClass('hidden');
$('#id_profile_in_directory_onoff .on').addClass('hidden');
$('#id_profile_in_directory').val(0);
@@ -66,7 +78,7 @@ function channel_privacy_macro(n) {
$('#id_write_pages option').eq(1).attr('selected','selected');
$('#id_delegate option').eq(0).attr('selected','selected');
$('#id_republish option').eq(0).attr('selected','selected');
- $('#id_bookmark option').eq(1).attr('selected','selected');
+ $('#id_post_like option').eq(1).attr('selected','selected');
$('#id_profile_in_directory_onoff .off').removeClass('hidden');
$('#id_profile_in_directory_onoff .on').addClass('hidden');
$('#id_profile_in_directory').val(0);
@@ -89,7 +101,7 @@ function channel_privacy_macro(n) {
$('#id_write_pages option').eq(0).attr('selected','selected');
$('#id_delegate option').eq(0).attr('selected','selected');
$('#id_republish option').eq(1).attr('selected','selected');
- $('#id_bookmark option').eq(1).attr('selected','selected');
+ $('#id_post_like option').eq(5).attr('selected','selected');
$('#id_profile_in_directory_onoff .on').removeClass('hidden');
$('#id_profile_in_directory_onoff .off').addClass('hidden');
$('#id_profile_in_directory').val(1);
@@ -112,7 +124,7 @@ function channel_privacy_macro(n) {
$('#id_write_pages option').eq(2).attr('selected','selected');
$('#id_delegate option').eq(0).attr('selected','selected');
$('#id_republish option').eq(5).attr('selected','selected');
- $('#id_bookmark option').eq(5).attr('selected','selected');
+ $('#id_post_like option').eq(6).attr('selected','selected');
$('#id_profile_in_directory_onoff .on').removeClass('hidden');
$('#id_profile_in_directory_onoff .off').addClass('hidden');
$('#id_profile_in_directory').val(1);