diff options
author | friendica <info@friendica.com> | 2012-03-26 20:13:03 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-03-26 20:13:03 -0700 |
commit | 5275b5d04967c1c5f84f25ca6b7db4e1aef2bacf (patch) | |
tree | 3da9938a0ec84819d87888c93486464678e1ea3f /view | |
parent | 4c585f759f5c2662b2d761adccdf2c6dafd31249 (diff) | |
download | volse-hubzilla-5275b5d04967c1c5f84f25ca6b7db4e1aef2bacf.tar.gz volse-hubzilla-5275b5d04967c1c5f84f25ca6b7db4e1aef2bacf.tar.bz2 volse-hubzilla-5275b5d04967c1c5f84f25ca6b7db4e1aef2bacf.zip |
qcomment enhancements
Diffstat (limited to 'view')
-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; |