diff --git a/view/comment_item.tpl b/view/comment_item.tpl index 3503c3843..a1d4e1043 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 722c79441..cd6f5ca97 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 b1c2fb77e..33be8b359 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;