1
1
Fork 0

Fix opening comment box when Post has replies

This commit is contained in:
Jonny Tischbein 2018-11-17 15:53:34 +01:00
parent 460c257cb4
commit dd7d556c86

View file

@ -373,9 +373,15 @@ function openClose(theID) {
function showHide(theID) { function showHide(theID) {
var elem = document.getElementById(theID); var elem = document.getElementById(theID);
var edit = document.getElementById("comment-edit-submit-wrapper-" + theID.match('[0-9$]+'));
if( $(elem).is(':visible') ) { if ($(elem).is(':visible')) {
elem.style.display = "none"; if (!$(edit).is(':visible')) {
edit.style.display = "block";
}
else {
elem.style.display = "none";
}
} }
else { else {
elem.style.display = "block"; elem.style.display = "block";