Browse Source

Fix template redlink detection. Don't block on fetching backlinks.

develop
Ben Kurtovic 9 years ago
parent
commit
3c8873cfea
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      tfdclerk.js

+ 3
- 4
tfdclerk.js View File

@@ -376,14 +376,13 @@ TFD.prototype._on_backlink_summary = function(tlinfo, ntrans, nmlinks) {
};

TFD.prototype._build_close_action_entry = function(page) {
var link_id = mw.util.wikiUrlencode(page)
.replace(/%/g, "\\.").replace(/:/g, "\\:");
var redlink = $("#" + link_id).children().first().hasClass("new");
var redlink = this.head.nextUntil("h4").filter("ul").first()
.find("a").filter(function() { return $(this).text() == page; })
.hasClass("new");

var tlinfo = $("<ul/>", {style: "display: inline;"})
.append(this._build_loading_node("li", "Fetching transclusions"));
// TODO: callback to fetch backlink data and call _on_backlink_summary
this._block_submit("fetching-backlinks-" + page);

return $("<li/>").append($("<a/>", {
href: mw.util.getUrl(page),


Loading…
Cancel
Save