From: friendica Date: Tue, 27 Mar 2012 03:13:03 +0000 (-0700) Subject: qcomment enhancements X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5275b5d04967c1c5f84f25ca6b7db4e1aef2bacf;p=friendica.git qcomment enhancements --- 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;