69
edits
m (1 revision) |
m (1 revision imported) |
||
(One intermediate revision by the same user not shown) | |||
Line 76: | Line 76: | ||
}); | }); | ||
wikipedia_api.params = { form:form, Window:Window }; | |||
wikipedia_api.post(); | |||
var root = document.createElement( 'div' ); | |||
Morebits.simpleWindow.setButtonsEnabled( true ); | |||
Morebits.status.init( root ); | |||
Window.setContent( root ); | |||
Window.display(); | |||
}, | }, | ||
Line 89: | Line 89: | ||
var pages = event.target.getChecked( 'pages' ); | var pages = event.target.getChecked( 'pages' ); | ||
Morebits.status.init( event.target ); | Morebits.status.init( event.target ); | ||
function | |||
var toCall = function( work ) { | |||
if( work.length === 0 ) { | if( work.length === 0 ) { | ||
Morebits.status.info( 'work done' ); | Morebits.status.info( 'work done' ); | ||
Line 112: | Line 113: | ||
} | } | ||
} | } | ||
} | }; | ||
var work = Morebits.array.chunk( pages, Twinkle.getPref('proddeleteChunks') ); | var work = Morebits.array.chunk( pages, Twinkle.getPref('proddeleteChunks') ); | ||
Morebits.wiki.addCheckpoint(); | Morebits.wiki.addCheckpoint(); | ||
Line 148: | Line 150: | ||
page.setEditSummary("Expired [[WP:PROD|PROD]], concern was: " + self.params.reason + Twinkle.getPref('deletionSummaryAd')); | page.setEditSummary("Expired [[WP:PROD|PROD]], concern was: " + self.params.reason + Twinkle.getPref('deletionSummaryAd')); | ||
page.deletePage(); | page.deletePage(); | ||
}, | }, | ||
callback_deleteRedirects = function( self ) { | callback_deleteRedirects = function( self ) { | ||
$doc = $(self.responseXML); | var $doc = $(self.responseXML); | ||
$doc.find("backlinks bl").each(function(){ | $doc.find("backlinks bl").each(function(){ | ||
var title = $(this).attr('title'); | var title = $(this).attr('title'); |