X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=js%2Futil.js;h=9001a401c2b373183c1697c06a912db2f4bb4bf1;hb=0da75125974b19c4a5bd2173fd57927b1e1b8e07;hp=2611d8515ac73e6b8b1812d68696b2075cf874a0;hpb=13c331fa8152f11a811d2ff66210b3298bc21ada;p=quix0rs-gnu-social.git diff --git a/js/util.js b/js/util.js index 2611d8515a..9001a401c2 100644 --- a/js/util.js +++ b/js/util.js @@ -620,37 +620,18 @@ var SN = { // StatusNet var parentNotice = notice; var stripForm = true; // strip a couple things out of reply forms that are inline - // Find the threaded replies view we'll be adding to... var list = notice.closest('.notices'); - if (list.closest('.old-school').length) { - // We're replying to an old-school conversation thread; - // use the old-style ping into the top form. - SN.U.switchInputFormTab("status"); - replyForm = $('#input_form_status').find('form'); - stripForm = false; - } else if (list.hasClass('threaded-replies')) { + if (list.hasClass('threaded-replies')) { // We're replying to a reply; use reply form on the end of this list. - // We'll add our form at the end of this; grab the root notice. - parentNotice = list.closest('.notice'); - - // See if the form's already open... - replyForm = $('.notice-reply-form', list); } else { // We're replying to a parent notice; pull its threaded list - // and we'll add on the end of it. Will add if needed. - list = $('ul.threaded-replies', notice); + // and we'll add on the end of it. Will add the threaded list if needed. + var list = $('ul.threaded-replies', notice); if (list.length == 0) { - SN.U.NoticeInlineReplyPlaceholder(notice); - list = $('ul.threaded-replies', notice); - } else { - placeholder = $('li.notice-reply-placeholder', notice); - if (placeholder.length == 0) { - SN.U.NoticeInlineReplyPlaceholder(notice); - } + list = $('