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/head.tpl | |
parent | 4c585f759f5c2662b2d761adccdf2c6dafd31249 (diff) | |
download | volse-hubzilla-5275b5d04967c1c5f84f25ca6b7db4e1aef2bacf.tar.gz volse-hubzilla-5275b5d04967c1c5f84f25ca6b7db4e1aef2bacf.tar.bz2 volse-hubzilla-5275b5d04967c1c5f84f25ca6b7db4e1aef2bacf.zip |
qcomment enhancements
Diffstat (limited to 'view/head.tpl')
-rwxr-xr-x | view/head.tpl | 16 |
1 files changed, 16 insertions, 0 deletions
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(); |