From 5275b5d04967c1c5f84f25ca6b7db4e1aef2bacf Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 26 Mar 2012 20:13:03 -0700 Subject: [PATCH] qcomment enhancements --- view/comment_item.tpl | 8 +++++--- view/head.tpl | 16 ++++++++++++++++ view/theme/duepuntozero/style.css | 6 ++++-- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/view/comment_item.tpl b/view/comment_item.tpl index 3503c3843e..a1d4e1043a 100755 --- a/view/comment_item.tpl +++ b/view/comment_item.tpl @@ -13,10 +13,12 @@
{{ if $qcomment }} - {{ for $qcomment as $qc }} - $qc -   + {{ endif }}
diff --git a/view/head.tpl b/view/head.tpl index 722c794414..cd6f5ca972 100755 --- a/view/head.tpl +++ b/view/head.tpl @@ -65,6 +65,22 @@ $("#comment-edit-text-" + id).val(tmpStr + ins); } + function qCommentInsert(obj,id) { + var tmpStr = $("#comment-edit-text-" + id).val(); + if(tmpStr == '$comment') { + tmpStr = ''; + $("#comment-edit-text-" + id).addClass("comment-edit-text-full"); + $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty"); + openMenu("comment-edit-submit-wrapper-" + id); + } + var ins = $(obj).val(); + ins = ins.replace('<','<'); + ins = ins.replace('>','>'); + ins = ins.replace('&','&'); + ins = ins.replace('"','"'); + $("#comment-edit-text-" + id).val(tmpStr + ins); + } + function showHideComments(id) { if( $('#collapsed-comments-' + id).is(':visible')) { $('#collapsed-comments-' + id).hide(); diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css index b1c2fb77eb..33be8b3590 100755 --- a/view/theme/duepuntozero/style.css +++ b/view/theme/duepuntozero/style.css @@ -2978,11 +2978,13 @@ div.jGrowl div.info { .qcomment { border: 1px solid #EEE; padding: 3px; + margin-top: 15px; + margin-left: 25px; } .qcomment { - opacity: 0; - filter:alpha(opacity=0); + opacity: 0.3; + filter:alpha(opacity=30); } .qcomment:hover { opacity: 1.0;