Skip to content

Commit 7f1f17a

Browse files
authored
DiscussionView: fix jQuery to not include "edit" links (#132)
1 parent bd0f79f commit 7f1f17a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

xfdcloser-src/Views/DiscussionView.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ DiscussionView.newFromHeadline = function({headingIndex, context, venue, current
193193
pages = $discussionNodes
194194
.find("dd > ul > li")
195195
.has("b:first-child:contains(\"Propose \")")
196-
.find("a:first-of-type")
196+
.find("span")
197+
.not(".lx")
198+
.children("a:first-of-type")
197199
.not(".external")
198200
.map(function () { return mw.Title.newFromText($(this).text()); })
199201
.get();

0 commit comments

Comments
 (0)