]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/duepuntozero/theme.php
permissions selector showing up for guests, testbubble and smoothly
[friendica.git] / view / theme / duepuntozero / theme.php
index 8c7e6c6072b02c568cea12afd63f3bb4c762a2c8..189628b0287acb06e1b7e1949a177b80d303b64a 100644 (file)
@@ -12,7 +12,8 @@ function insertFormatting(comment,BBcode,id) {
                        $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
                        $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
                        openMenu("comment-edit-submit-wrapper-" + id);
-                                                               }
+                       $("#comment-edit-text-" + id).val(tmpStr);
+               }
 
        textarea = document.getElementById("comment-edit-text-" +id);
        if (document.selection) {
@@ -33,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(id) {
-       $(".comment-edit-bb-" + id).hide();
+function cmtBbClose(comment, id) {
+       if($(comment).hasClass('comment-edit-text-empty')) {
+               $(".comment-edit-bb-" + id).hide();
+               return true;
+       }
+       return false;
 }
 $(document).ready(function() {