X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fhead.tpl;h=42bd92f4ce497d42d271c9cba19cf4f709be211b;hb=8a4dcc28c1e3a0bdb5b8b4fa971ff48cf3e0fb75;hp=8a75a4b8e0bf1ecb0900b8b1895f37c02f2a337d;hpb=12474e3c2eb21e4b5f9f6cd4b9d223f1f39bfe89;p=friendica.git diff --git a/view/head.tpl b/view/head.tpl index 8a75a4b8e0..42bd92f4ce 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; } @@ -96,6 +100,15 @@ } } + function showHideCommentBox(id) { + if( $('#comment-edit-form-' + id).is(':visible')) { + $('#comment-edit-form-' + id).hide(); + } + else { + $('#comment-edit-form-' + id).show(); + } + } +