Browse Source

Fix opening comment box when Post has replies

pull/6154/head
Jonny Tischbein 3 years ago
parent
commit
dd7d556c86
  1. 10
      view/theme/frio/js/theme.js

10
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";

Loading…
Cancel
Save