X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fhead.tpl;h=7638e56ca693a42b6a1731ff3ecde4fd8de3b70e;hb=c9bb88861162873ec339530a32c8458721aed777;hp=722c79441465698acf0debaa8b38bcbb49a46281;hpb=286c230fa858b7b1fead9c3ff722f6b1b9478d01;p=friendica.git diff --git a/view/head.tpl b/view/head.tpl old mode 100755 new mode 100644 index 722c794414..7638e56ca6 --- a/view/head.tpl +++ b/view/head.tpl @@ -65,6 +65,23 @@ $("#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); + $(obj).val(''); + } + function showHideComments(id) { if( $('#collapsed-comments-' + id).is(':visible')) { $('#collapsed-comments-' + id).hide();