aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js')
-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);