mirror of
https://github.com/friendica/friendica
synced 2024-12-23 10:40:16 +00:00
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:
commit
f5d58d07e1
1 changed files with 8 additions and 2 deletions
|
@ -373,10 +373,16 @@ 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')) {
|
||||||
|
if (!$(edit).is(':visible')) {
|
||||||
|
edit.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
elem.style.display = "none";
|
elem.style.display = "none";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
elem.style.display = "block";
|
elem.style.display = "block";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue