X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fhead.tpl;h=722c79441465698acf0debaa8b38bcbb49a46281;hb=84686a26986e4d57093e48523b444dcd4f17c392;hp=9fe5a63b3b0ac24d78bb02010ef5e49f48c6035a;hpb=8aa25523721303b6883e1a793f20997f8a33ec0a;p=friendica.git
diff --git a/view/head.tpl b/view/head.tpl
index 9fe5a63b3b..722c794414 100755
--- a/view/head.tpl
+++ b/view/head.tpl
@@ -7,14 +7,14 @@
-
+
+ title="Search in Friendica" />
@@ -34,18 +34,37 @@
function commentOpen(obj,id) {
if(obj.value == '$comment') {
obj.value = '';
- obj.className = "comment-edit-text-full";
+ $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
+ $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
openMenu("comment-edit-submit-wrapper-" + id);
}
}
function commentClose(obj,id) {
if(obj.value == '') {
obj.value = '$comment';
- obj.className="comment-edit-text-empty";
+ $("#comment-edit-text-" + id).removeClass("comment-edit-text-full");
+ $("#comment-edit-text-" + id).addClass("comment-edit-text-empty");
closeMenu("comment-edit-submit-wrapper-" + id);
}
}
+
+ 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();