]> git.mxchange.org Git - friendica.git/commitdiff
Bring back BB-Code in comments
authorChristian Vogeley <christian.vogeley@hotmail.de>
Tue, 2 Oct 2012 19:29:00 +0000 (21:29 +0200)
committerChristian Vogeley <christian.vogeley@hotmail.de>
Tue, 2 Oct 2012 19:29:00 +0000 (21:29 +0200)
view/theme/cleanzero/theme.php

index c993619973ec47b385a8208662f0741fbd290a4c..f65890f3f1c509595809ca50614f0a9ac0c9de90 100644 (file)
@@ -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(