diff options
-rwxr-xr-x | view/comment_item.tpl | 8 | ||||
-rwxr-xr-x | view/head.tpl | 16 | ||||
-rwxr-xr-x | 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 3503c3843..a1d4e1043 100755 --- a/view/comment_item.tpl +++ b/view/comment_item.tpl @@ -13,10 +13,12 @@ <div class="comment-edit-photo-end"></div> <textarea id="comment-edit-text-$id" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,$id);" onBlur="commentClose(this,$id);" >$comment</textarea> {{ if $qcomment }} - {{ for $qcomment as $qc }} - <span class="fakelink qcomment" onclick="commentInsert(this,$id); return false;" >$qc</span> - + <select id="qcomment-select-$id" name="qcomment-$id" class="qcomment" onchange="qCommentInsert(this,$id);" > + <option value=""></option> + {{ for $qcomment as $qc }} + <option value="$qc">$qc</option> {{ endfor }} + </select> {{ endif }} <div class="comment-edit-text-end"></div> 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; |