aboutsummaryrefslogtreecommitdiffstats
path: root/view/head.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/head.tpl')
-rwxr-xr-xview/head.tpl12
1 files changed, 12 insertions, 0 deletions
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();