]> git.mxchange.org Git - friendica.git/commitdiff
Fix opening comment box when Post has replies
authorJonny Tischbein <jonny_tischbein@systemli.org>
Sat, 17 Nov 2018 14:53:34 +0000 (15:53 +0100)
committerJonny Tischbein <jonny_tischbein@systemli.org>
Sat, 17 Nov 2018 14:53:34 +0000 (15:53 +0100)
view/theme/frio/js/theme.js

index edbe713c6713ad7abf51f11bce2db37c7e61b9af..d10639c8fe52f87d9bb21ef8f31ec5e1ed2429a9 100644 (file)
@@ -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";