]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - js/util.js
Fix inline replies (pretty sure I got it this time)
[quix0rs-gnu-social.git] / js / util.js
index b233eab20337165006e21ea90d384e41a9e2fa1a..6ff64d7487ed1b1b64a3c28ad8c9391f5588e574 100644 (file)
@@ -650,8 +650,14 @@ var SN = { // StatusNet
                 // and we'll add on the end of it. Will add if needed.
                 list = $('ul.threaded-replies', notice);
                 if (list.length == 0) {
+                    console.log("list = 0");
                     SN.U.NoticeInlineReplyPlaceholder(notice);
                     list = $('ul.threaded-replies', notice);
+                } else {
+                    var placeholder = $('li.notice-reply-placeholder', notice);
+                    if (placeholder.length == 0) {
+                        SN.U.NoticeInlineReplyPlaceholder(notice);
+                    }
                 }
             }