From: Christian Vogeley Date: Tue, 2 Oct 2012 19:29:00 +0000 (+0200) Subject: Bring back BB-Code in comments X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=44acbb25e40c088d8e29dd0eaae0443d870e442e;p=friendica.git Bring back BB-Code in comments --- diff --git a/view/theme/cleanzero/theme.php b/view/theme/cleanzero/theme.php index c993619973..f65890f3f1 100644 --- a/view/theme/cleanzero/theme.php +++ b/view/theme/cleanzero/theme.php @@ -42,13 +42,22 @@ 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() { $('.group-edit-icon').hover(