User:MC10/stubtagtab.js: Difference between revisions

Content deleted Content added
m remove quotes
fix stubtagmenu
Line 16:
newa.click(function (e) {
e.preventDefault();
stubtagmenu(a[i]);
});
newa.text(a[i]);
Line 45:
}
 
function stubtagmenu(x) {
// Fetch the relevant subpage of the WikiProject
$.ajax({
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/' + x$(this).text() + '}}') + '&format=json',
dataType: "json", // "text"
success: stubtagmenurender