diff options
author | hubzilla <git@macgirvin.com> | 2016-08-14 21:24:24 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-14 21:24:24 +1000 |
commit | d1cb925b5902e01eb1580921260faf3362279249 (patch) | |
tree | 36b38379936da4c70d300443fb8176e2fe48ec50 /view/tpl/jot-header.tpl | |
parent | 993b182f811a6e7f3287c9554b00abd72517954d (diff) | |
parent | 229cc2ac431cdcef80cc45a42178fe7a1e4233e4 (diff) | |
download | volse-hubzilla-d1cb925b5902e01eb1580921260faf3362279249.tar.gz volse-hubzilla-d1cb925b5902e01eb1580921260faf3362279249.tar.bz2 volse-hubzilla-d1cb925b5902e01eb1580921260faf3362279249.zip |
Merge pull request #482 from anaqreon/nocomment
Added an optional post editor button to toggle comments
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..3d38df0f0 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', '{{$nocomment_enabled}}'); + } + else { + $('#jot-nocomment').val(1); + $('#profile-nocomment, #profile-nocomment-sub').removeClass('fa-comments').addClass('fa-comments-o'); + $('#profile-nocomment-wrapper').attr('title', '{{$nocomment_disabled}}'); + } + } + function jotReact(id,icon) { if(id && icon) { $.get('{{$baseurl}}/react?f=&postid=' + id + '&emoji=' + icon); |