From 5d2dd5798bcb8d9b100f0a19b822b0477c546160 Mon Sep 17 00:00:00 2001 From: Simon L'nu Date: Fri, 20 Apr 2012 06:42:08 -0400 Subject: fix the buttons. don't hide the buttons once shown Signed-off-by: Simon L'nu --- view/theme/dispy-dark/bottom.tpl | 6 ------ view/theme/dispy-dark/comment_item.tpl | 2 +- view/theme/dispy/bottom.tpl | 6 ------ view/theme/dispy/comment_item.tpl | 2 +- 4 files changed, 2 insertions(+), 14 deletions(-) diff --git a/view/theme/dispy-dark/bottom.tpl b/view/theme/dispy-dark/bottom.tpl index a0298a7de..130bfb25a 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 371477c5b..b4fbae5df 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 a0298a7de..130bfb25a 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 371477c5b..b4fbae5df 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 }}
-- cgit v1.2.3