From 56495e04b2c3ce600aa0c158f9ba8f92b6456d37 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 21 Mar 2012 06:48:04 -0700 Subject: [PATCH] smooth the comix comment box --- view/head.tpl | 6 ++++-- view/theme/comix/comment_item.tpl | 32 +++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100755 view/theme/comix/comment_item.tpl diff --git a/view/head.tpl b/view/head.tpl index c5f7a805a8..722c794414 100755 --- a/view/head.tpl +++ b/view/head.tpl @@ -34,14 +34,16 @@ function commentOpen(obj,id) { if(obj.value == '$comment') { obj.value = ''; - obj.className = "comment-edit-text-full"; + $("#comment-edit-text-" + id).addClass("comment-edit-text-full"); + $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty"); openMenu("comment-edit-submit-wrapper-" + id); } } function commentClose(obj,id) { if(obj.value == '') { obj.value = '$comment'; - obj.className="comment-edit-text-empty"; + $("#comment-edit-text-" + id).removeClass("comment-edit-text-full"); + $("#comment-edit-text-" + id).addClass("comment-edit-text-empty"); closeMenu("comment-edit-submit-wrapper-" + id); } } diff --git a/view/theme/comix/comment_item.tpl b/view/theme/comix/comment_item.tpl new file mode 100755 index 0000000000..9c3facaff0 --- /dev/null +++ b/view/theme/comix/comment_item.tpl @@ -0,0 +1,32 @@ +
+
+ + + + + + + +
+ $mytitle +
+
+ + {{ if $qcomment }} + {{ for $qcomment as $qc }} + $qc +   + {{ endfor }} + {{ endif }} + +
+ + +
+
+ +
-- 2.39.5