Merge pull request #6154 from JonnyTischbein/issue_open_commentbox_post_with_replies

[frio] Fix opening comment box when Post has replies
This commit is contained in:
Hypolite Petovan 2018-11-17 10:01:05 -05:00 committed by GitHub
commit f5d58d07e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -373,10 +373,16 @@ 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') ) {
if ($(elem).is(':visible')) {
if (!$(edit).is(':visible')) {
edit.style.display = "block";
}
else {
elem.style.display = "none";
}
}
else {
elem.style.display = "block";
}