]> git.mxchange.org Git - friendica.git/commitdiff
bring back comment edit buttons
authorfriendica <info@friendica.com>
Tue, 11 Sep 2012 01:06:18 +0000 (18:06 -0700)
committerfriendica <info@friendica.com>
Tue, 11 Sep 2012 01:06:18 +0000 (18:06 -0700)
view/theme/duepuntozero/style.css
view/theme/slackr/theme.php

index dde9b6915bd3d2102471b88b1a38e30032922433..030ecdbe1fb23b983314742ddf8c6d7ad5552c7c 100644 (file)
@@ -1765,7 +1765,7 @@ input#dfrn-url {
 
 .comment-edit-text-empty {
        color: gray;
-       height: 5em;
+       height: 2em;
        width: 175px;
        overflow: auto;
        margin-bottom: 10px;
index 9887008606dcd7603d0079a41f3106ed4f40bf1c..ff6d19ec9d81e55b39cd4c3c68f7531451fd029a 100644 (file)
@@ -37,13 +37,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(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;
 }
 
+
 function hidecal() {
        if(editor) return;
        $('.fc').hide();