From c11aa30ef42fe4962d7428803b771cb9da717a62 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 19 Sep 2012 18:24:20 -0700 Subject: [PATCH] this is not the best solution, but don't close the comment-bb buttons when you click outside the comment, because the comment-bb buttons are outside the comment and if you click one on an empty comment box the comment goes away completely and the bbcode doesn't get inserted. --- view/theme/duepuntozero/theme.php | 8 ++++---- view/theme/slackr/theme.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/view/theme/duepuntozero/theme.php b/view/theme/duepuntozero/theme.php index 189628b028..5b87dcd420 100644 --- a/view/theme/duepuntozero/theme.php +++ b/view/theme/duepuntozero/theme.php @@ -42,10 +42,10 @@ function cmtBbOpen(comment, id) { return false; } function cmtBbClose(comment, id) { - if($(comment).hasClass('comment-edit-text-empty')) { - $(".comment-edit-bb-" + id).hide(); - return true; - } +// if($(comment).hasClass('comment-edit-text-empty')) { +// $(".comment-edit-bb-" + id).hide(); +// return true; +// } return false; } $(document).ready(function() { diff --git a/view/theme/slackr/theme.php b/view/theme/slackr/theme.php index ff6d19ec9d..65a92c1845 100644 --- a/view/theme/slackr/theme.php +++ b/view/theme/slackr/theme.php @@ -45,10 +45,10 @@ function cmtBbOpen(comment, id) { return false; } function cmtBbClose(comment, id) { - if($(comment).hasClass('comment-edit-text-empty')) { - $(".comment-edit-bb-" + id).hide(); - return true; - } +// if($(comment).hasClass('comment-edit-text-empty')) { +// $(".comment-edit-bb-" + id).hide(); +// return true; +// } return false; } -- 2.39.5