Content deleted Content added
Trim out the code for generating the WikiProject List and the next random page, and used the pre-compiled list from User:Ahechtbot and the randomincategory tool on toolforge instead. |
Copy from sandbox, remove unnecessary code |
||
Line 17:
}
var portletLink = mw.util.addPortletLink("p-cactions", "#", "Sort draft (sandbox)", "pt-draftsort", "Manage WikiProject tags");
$( portletLink ).click( function ( e ) {
e.preventDefault();
Line 27:
//var templateCache = mw.config.get("wgFormattedNamespaces")[2]+":"+mw.config.get("wgUserName")+"/Scripts/draft-sorter.json";
var templateCache = "User:Ahechtbot/WikiProject templates.json";
// Define the form
var form = $( "<div>" )
Line 136:
function nextDraft() {
// Special:RandomInCategory isn't random,
if (nextButton) {
nextButton.setLabel( "Loading..." ).setDisabled( true );
|