From: Simon L'nu Date: Fri, 20 Apr 2012 10:42:08 +0000 (-0400) Subject: fix the buttons. don't hide the buttons once shown X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5d2dd5798bcb8d9b100f0a19b822b0477c546160;p=friendica.git fix the buttons. don't hide the buttons once shown Signed-off-by: Simon L'nu --- diff --git a/view/theme/dispy-dark/bottom.tpl b/view/theme/dispy-dark/bottom.tpl index a0298a7de9..130bfb25ae 100644 --- a/view/theme/dispy-dark/bottom.tpl +++ b/view/theme/dispy-dark/bottom.tpl @@ -42,11 +42,5 @@ function insertFormatting(comment, BBcode, id) { function cmtBbOpen(id) { $(".comment-edit-bb-" + id).show(); - $(".comment-edit-bb-" + id + "> li").css({visibility: 'visible'}); - -} -function cmtBbClose(id) { - $(".comment-edit-bb-" + id).hide(); - $(".comment-edit-bb-" + id + "> li").css({visibility: 'none'}); } diff --git a/view/theme/dispy-dark/comment_item.tpl b/view/theme/dispy-dark/comment_item.tpl index 371477c5b9..b4fbae5dfa 100644 --- a/view/theme/dispy-dark/comment_item.tpl +++ b/view/theme/dispy-dark/comment_item.tpl @@ -42,7 +42,7 @@ class="comment-edit-text-empty" name="body" onfocus="commentOpen(this,$id);tautogrow($id);cmtBbOpen($id);" - onblur="commentClose(this,$id);cmtBbClose($id);" + onblur="commentClose(this,$id);" placeholder="Comment">$comment {{ if $qcomment }}
diff --git a/view/theme/dispy/bottom.tpl b/view/theme/dispy/bottom.tpl index a0298a7de9..130bfb25ae 100644 --- a/view/theme/dispy/bottom.tpl +++ b/view/theme/dispy/bottom.tpl @@ -42,11 +42,5 @@ function insertFormatting(comment, BBcode, id) { function cmtBbOpen(id) { $(".comment-edit-bb-" + id).show(); - $(".comment-edit-bb-" + id + "> li").css({visibility: 'visible'}); - -} -function cmtBbClose(id) { - $(".comment-edit-bb-" + id).hide(); - $(".comment-edit-bb-" + id + "> li").css({visibility: 'none'}); } diff --git a/view/theme/dispy/comment_item.tpl b/view/theme/dispy/comment_item.tpl index 371477c5b9..b4fbae5dfa 100644 --- a/view/theme/dispy/comment_item.tpl +++ b/view/theme/dispy/comment_item.tpl @@ -42,7 +42,7 @@ class="comment-edit-text-empty" name="body" onfocus="commentOpen(this,$id);tautogrow($id);cmtBbOpen($id);" - onblur="commentClose(this,$id);cmtBbClose($id);" + onblur="commentClose(this,$id);" placeholder="Comment">$comment {{ if $qcomment }}