Skip to content

Commit

Permalink
fix XFDcloser links not appearing in vector 2010
Browse files Browse the repository at this point in the history
hotfix
  • Loading branch information
NovemLinguae committed Jun 7, 2024
1 parent ca049a8 commit afab78b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions xfdcloser-src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import DiscussionView from "./Views/DiscussionView";
});
});

// Unlink portlet link: non-existant pages only
// Unlink portlet link: non-existent pages only
if ( config.mw.wgArticleId === 0 ) {
mw.util.addPortletLink("p-cactions", "#", "XFDC Unlink", "p-xfdc-unlink", "Unlink backlinks using XFDcloser");
$("#p-xfdc-unlink").click(e => {
Expand Down Expand Up @@ -67,7 +67,7 @@ import DiscussionView from "./Views/DiscussionView";
});
} else {
let heading = config.xfd.html.headlineinner.oldskin;
if ( [ "vector", "vector-2022", "minerva" ].includes ( mw.config.get( "skin" ) ) ) {
if ( [ "vector-2022", "minerva" ].includes ( mw.config.get( "skin" ) ) ) {
heading = config.xfd.html.headlineinner.newskin;
}

Expand Down
2 changes: 1 addition & 1 deletion xfdcloser-src/Views/DiscussionView.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ DiscussionView.newFromHeadline = function({headingIndex, context, venue, current
// Find all nodes that are part of this discussion (i.e. excluding subsequent closed discussions)
$("table.mw-collapsible").has("div.xfd-closed").addClass("xfd-closed"); // Fix for closed discussion within a collapsed table (e.g. MfD)
let headlineouter = venue.html.headlineouter.oldskin;
if ( [ "vector", "vector-2022", "minerva" ].includes ( mw.config.get( "skin" ) ) ) {
if ( [ "vector-2022", "minerva" ].includes ( mw.config.get( "skin" ) ) ) {
headlineouter = venue.html.headlineouter.newskin;
}
const $discussionNodes = $heading.nextUntil(headlineouter + ", div.xfd-closed, table.xfd-closed");
Expand Down

0 comments on commit afab78b

Please sign in to comment.