diff --git a/view/theme/cleanzero/theme.php b/view/theme/cleanzero/theme.php index c9936199..f65890f3 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(