X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fhead.tpl;h=f5998703f27eafdd4b3e68e2ba95bea6c0ae7ffc;hb=d193093106fa98a452e23830c8387c69748c95ea;hp=7e8369bddd4bcab64fee9ae880f9dab8c2a391a9;hpb=6b9ac253983d6d4fd676fd17043ad24ad24c5bb5;p=friendica.git diff --git a/view/head.tpl b/view/head.tpl index 7e8369bddd..f5998703f2 100644 --- a/view/head.tpl +++ b/view/head.tpl @@ -6,9 +6,13 @@ - + + + + + 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 +42,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 +94,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(); } }