X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fhead.tpl;h=f861060c77250eba5aaed7345cceccd712ea9184;hb=7093c1b9f6a1dd820b0f5b3cae7a7b2ec3a8bec3;hp=e5495b329f159d24d1c60692844208651488a843;hpb=66848b04717528bca009b9f5c33291bb593e9033;p=friendica.git diff --git a/view/head.tpl b/view/head.tpl index e5495b329f..f861060c77 100644 --- a/view/head.tpl +++ b/view/head.tpl @@ -39,7 +39,9 @@ $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty"); $("#mod-cmnt-wrap-" + id).show(); openMenu("comment-edit-submit-wrapper-" + id); + return true; } + return false; } function commentClose(obj,id) { if(obj.value == '') { @@ -48,7 +50,9 @@ $("#comment-edit-text-" + id).addClass("comment-edit-text-empty"); $("#mod-cmnt-wrap-" + id).hide(); closeMenu("comment-edit-submit-wrapper-" + id); + return true; } + return false; } @@ -85,16 +89,8 @@ $(obj).val(''); } - function showHideComments(id) { - if( $('#collapsed-comments-' + id).is(':visible')) { - $('#collapsed-comments-' + id).hide(); - $('#hide-comments-' + id).html('$showmore'); - } - else { - $('#collapsed-comments-' + id).show(); - $('#hide-comments-' + id).html('$showfewer'); - } - } + window.showMore = "$showmore"; + window.showFewer = "$showfewer"; function showHideCommentBox(id) { if( $('#comment-edit-form-' + id).is(':visible')) {