diff options
Diffstat (limited to 'view')
-rwxr-xr-x | view/comment_item.tpl | 6 | ||||
-rwxr-xr-x | view/head.tpl | 12 | ||||
-rwxr-xr-x | view/theme/duepuntozero/style.css | 14 |
3 files changed, 32 insertions, 0 deletions
diff --git a/view/comment_item.tpl b/view/comment_item.tpl index a28fc411a..b29735227 100755 --- a/view/comment_item.tpl +++ b/view/comment_item.tpl @@ -12,6 +12,12 @@ </div> <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> + + {{ endfor }} + {{ endif }} <div class="comment-edit-text-end"></div> <div class="comment-edit-submit-wrapper" id="comment-edit-submit-wrapper-$id" style="display: none;" > diff --git a/view/head.tpl b/view/head.tpl index 9fe5a63b3..70d830faa 100755 --- a/view/head.tpl +++ b/view/head.tpl @@ -46,6 +46,18 @@ } } + + function commentInsert(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); + } + $("#comment-edit-text-" + id).val(tmpStr + $(obj).html()); + } + 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 fbbcaab68..cf7505ad0 100755 --- a/view/theme/duepuntozero/style.css +++ b/view/theme/duepuntozero/style.css @@ -2953,3 +2953,17 @@ div.jGrowl div.info { color: #ffffff; padding-left: 58px; } + +.qcomment { + border: 1px solid #EEE; + padding: 3px; +} + +.qcomment { + opacity: 0; + filter:alpha(opacity=0); +} +.qcomment:hover { + opacity: 1.0; + filter:alpha(opacity=100); +} |