diff options
author | friendica <info@friendica.com> | 2012-09-10 22:00:56 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-09-10 22:00:56 -0700 |
commit | c8957b36ea11a41604330c8f87c0fc0611ef18e6 (patch) | |
tree | 4a1b2ae68d463a69c388fa6ee0a7453cc8e74498 /view/theme/duepuntozero/php/theme.php | |
parent | 61cca7637af3c4484d90ed9e1208a10845758276 (diff) | |
download | volse-hubzilla-c8957b36ea11a41604330c8f87c0fc0611ef18e6.tar.gz volse-hubzilla-c8957b36ea11a41604330c8f87c0fc0611ef18e6.tar.bz2 volse-hubzilla-c8957b36ea11a41604330c8f87c0fc0611ef18e6.zip |
permissions responder + upstream merge
Diffstat (limited to 'view/theme/duepuntozero/php/theme.php')
-rw-r--r-- | view/theme/duepuntozero/php/theme.php | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/view/theme/duepuntozero/php/theme.php b/view/theme/duepuntozero/php/theme.php index e42c2b7b4..a1d436a4b 100644 --- a/view/theme/duepuntozero/php/theme.php +++ b/view/theme/duepuntozero/php/theme.php @@ -34,11 +34,19 @@ function insertFormatting(comment,BBcode,id) { return true; } -function cmtBbOpen(id) { - $(".comment-edit-bb-" + id).show(); +function cmtBbOpen(comment, id) { + if($(comment).hasClass('comment-edit-text-full')) { + $(".comment-edit-bb-" + id).show(); + return true; + } + return false; } function cmtBbClose(comment, id) { - $(".comment-edit-bb-" + id).hide(); + if($(comment).hasClass('comment-edit-text-empty')) { + $(".comment-edit-bb-" + id).hide(); + return true; + } + return false; } $(document).ready(function() { |