diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-08-14 06:41:12 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-08-14 06:41:12 -0400 |
commit | 2e7f4c1870dcd8ce05329b80d97be1269ff2a1a7 (patch) | |
tree | d7f9c79a5fb8c162db30ccc651596dee0e293a52 /view/tpl/jot-header.tpl | |
parent | 82d61f194a62a5b078825bf6eb341dbe5d83dfab (diff) | |
download | volse-hubzilla-2e7f4c1870dcd8ce05329b80d97be1269ff2a1a7.tar.gz volse-hubzilla-2e7f4c1870dcd8ce05329b80d97be1269ff2a1a7.tar.bz2 volse-hubzilla-2e7f4c1870dcd8ce05329b80d97be1269ff2a1a7.zip |
Added a disable comments setting to the "Additional features" settings with a corresponding post editor toggle button
Diffstat (limited to 'view/tpl/jot-header.tpl')
-rwxr-xr-x | view/tpl/jot-header.tpl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index fc87c14d7..32d5cae03 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -371,6 +371,19 @@ function enableOnUser(){ } } + function toggleNoComment() { + if($('#jot-nocomment').val() > 0) { + $('#jot-nocomment').val(0); + $('#profile-nocomment, #profile-nocomment-sub').removeClass('fa-comments-o').addClass('fa-comments'); + $('#profile-nocomment-wrapper').attr('title', 'Comments enabled'); + } + else { + $('#jot-nocomment').val(1); + $('#profile-nocomment, #profile-nocomment-sub').removeClass('fa-comments').addClass('fa-comments-o'); + $('#profile-nocomment-wrapper').attr('title', 'Comments disabled'); + } + } + function jotReact(id,icon) { if(id && icon) { $.get('{{$baseurl}}/react?f=&postid=' + id + '&emoji=' + icon); |