From: Jonny Tischbein Date: Sat, 17 Nov 2018 14:53:34 +0000 (+0100) Subject: Fix opening comment box when Post has replies X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dd7d556c86b762045220fbda6e28d97c72e91347;p=friendica.git Fix opening comment box when Post has replies --- diff --git a/view/theme/frio/js/theme.js b/view/theme/frio/js/theme.js index edbe713c67..d10639c8fe 100644 --- a/view/theme/frio/js/theme.js +++ b/view/theme/frio/js/theme.js @@ -373,9 +373,15 @@ function openClose(theID) { function showHide(theID) { var elem = document.getElementById(theID); + var edit = document.getElementById("comment-edit-submit-wrapper-" + theID.match('[0-9$]+')); - if( $(elem).is(':visible') ) { - elem.style.display = "none"; + if ($(elem).is(':visible')) { + if (!$(edit).is(':visible')) { + edit.style.display = "block"; + } + else { + elem.style.display = "none"; + } } else { elem.style.display = "block";