aboutsummaryrefslogtreecommitdiffstats
path: root/view/head.tpl
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-26 20:13:03 -0700
committerfriendica <info@friendica.com>2012-03-26 20:13:03 -0700
commit5275b5d04967c1c5f84f25ca6b7db4e1aef2bacf (patch)
tree3da9938a0ec84819d87888c93486464678e1ea3f /view/head.tpl
parent4c585f759f5c2662b2d761adccdf2c6dafd31249 (diff)
downloadvolse-hubzilla-5275b5d04967c1c5f84f25ca6b7db4e1aef2bacf.tar.gz
volse-hubzilla-5275b5d04967c1c5f84f25ca6b7db4e1aef2bacf.tar.bz2
volse-hubzilla-5275b5d04967c1c5f84f25ca6b7db4e1aef2bacf.zip
qcomment enhancements
Diffstat (limited to 'view/head.tpl')
-rwxr-xr-xview/head.tpl16
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('&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();