From dd7d556c86b762045220fbda6e28d97c72e91347 Mon Sep 17 00:00:00 2001 From: Jonny Tischbein Date: Sat, 17 Nov 2018 15:53:34 +0100 Subject: [PATCH] Fix opening comment box when Post has replies --- view/theme/frio/js/theme.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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";