diff options
Diffstat (limited to 'view/head.tpl')
-rwxr-xr-x | view/head.tpl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/view/head.tpl b/view/head.tpl index 9fe5a63b3..2a1837088 100755 --- a/view/head.tpl +++ b/view/head.tpl @@ -46,6 +46,23 @@ } } + + 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); + } + var ins = $(obj).html(); + 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(); |