From 44acbb25e40c088d8e29dd0eaae0443d870e442e Mon Sep 17 00:00:00 2001 From: Christian Vogeley Date: Tue, 2 Oct 2012 21:29:00 +0200 Subject: [PATCH] Bring back BB-Code in comments --- view/theme/cleanzero/theme.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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(