Content deleted Content added
add loading message |
re-indent a, add error function |
||
Line 7:
function stubTagTab() {
var $h, $hb, $newa,
a = ['General', 'Commerce', 'Culture', 'Education', 'Geography', 'Government, law, and politics',
'History', 'Leisure', 'Military and weaponry', 'Organizations', 'People',
'Religion, mythology, faiths, and beliefs', 'Science', 'Sports', 'Technology', 'Transport',
'Miscellaneous'];
$h = $("<div></div>");
$h.css({
Line 56 ⟶ 60:
});
$("#stubtagmenu").html($parseData);
}
function stubTagMenuFail() {
$("#stubtagmenu").html("Failed to load stub tags.");
}
Line 66 ⟶ 74:
url: mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/api.php?action=parse&prop=text&text=' + encodeURIComponent('__NOTOC____NOEDITSECTION__\{\{Wikipedia:WikiProject Stub sorting/Stub types/' + stubType + '}}') + '&format=json',
dataType: "json",
success: stubTagMenuRender,
error: stubTagMenuFail
});
}
|