X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fhead.tpl;h=f861060c77250eba5aaed7345cceccd712ea9184;hb=7093c1b9f6a1dd820b0f5b3cae7a7b2ec3a8bec3;hp=7b15412427e8973210f401b3d84446861a5055cf;hpb=e245ecddf2e62db7fdfbc41802b9171eb925650f;p=friendica.git diff --git a/view/head.tpl b/view/head.tpl index 7b15412427..f861060c77 100644 --- a/view/head.tpl +++ b/view/head.tpl @@ -6,7 +6,6 @@ - var updateInterval = $update_interval; + var localUser = {{ if $local_user }}$local_user{{ else }}false{{ endif }}; function confirmDelete() { return confirm("$delitem"); } function commentOpen(obj,id) { @@ -37,16 +37,22 @@ obj.value = ''; $("#comment-edit-text-" + id).addClass("comment-edit-text-full"); $("#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 == '') { obj.value = '$comment'; $("#comment-edit-text-" + id).removeClass("comment-edit-text-full"); $("#comment-edit-text-" + id).addClass("comment-edit-text-empty"); + $("#mod-cmnt-wrap-" + id).hide(); closeMenu("comment-edit-submit-wrapper-" + id); + return true; } + return false; } @@ -83,14 +89,15 @@ $(obj).val(''); } - function showHideComments(id) { - if( $('#collapsed-comments-' + id).is(':visible')) { - $('#collapsed-comments-' + id).hide(); - $('#hide-comments-' + id).html('$showmore'); + window.showMore = "$showmore"; + window.showFewer = "$showfewer"; + + function showHideCommentBox(id) { + if( $('#comment-edit-form-' + id).is(':visible')) { + $('#comment-edit-form-' + id).hide(); } else { - $('#collapsed-comments-' + id).show(); - $('#hide-comments-' + id).html('$showfewer'); + $('#comment-edit-form-' + id).show(); } }