aboutsummaryrefslogtreecommitdiffstats
path: root/view/head.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/head.tpl')
-rw-r--r--[-rwxr-xr-x]view/head.tpl16
1 files changed, 16 insertions, 0 deletions
diff --git a/view/head.tpl b/view/head.tpl
index 722c79441..cd6f5ca97 100755..100644
--- 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('&lt;','<');
+ ins = ins.replace('&gt;','>');
+ ins = ins.replace('&amp;','&');
+ ins = ins.replace('&quot;','"');
+ $("#comment-edit-text-" + id).val(tmpStr + ins);
+ }
+
function showHideComments(id) {
if( $('#collapsed-comments-' + id).is(':visible')) {
$('#collapsed-comments-' + id).hide();