aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/duepuntozero/php/theme.php
diff options
context:
space:
mode:
Diffstat (limited to 'view/theme/duepuntozero/php/theme.php')
-rw-r--r--view/theme/duepuntozero/php/theme.php14
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() {