X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fhead.tpl;h=2a18370887dbd5e72c6c20650d1172730cedac5a;hb=d5adb67ef480bd24bcca4d384eba72e51ae27446;hp=9fe5a63b3b0ac24d78bb02010ef5e49f48c6035a;hpb=ed725df5f1c1ea2484c689283e93f8f825591384;p=friendica.git diff --git a/view/head.tpl b/view/head.tpl old mode 100644 new mode 100755 index 9fe5a63b3b..2a18370887 --- 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();