]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/cleanzero/theme.php
Merge pull request #503 from CyberDomovoy/valid_html
[friendica.git] / 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(