User:AzaToth/twinklebatchdelete.js: Difference between revisions

Content deleted Content added
update
hopefullt bug fix
Line 38:
function twinklebatchdelete() {
if( userIsInGroup( 'sysop' ) ) {
addPortletLink( 'p-cactions', "javascript:twinklebatchdelete.callback()", "d-batch", "tw-batch", "Delete pages found in this category/on this page", "");
}
}
Line 145:
Wikipedia.removeCheckpoint();
return;
} else if( twinklebatchdelete.currentDeleteCounter <= 0 ||&& twinklebatchdelete.currentUnlinkCounter <= 0 ) {
twinklebatchdelete.currentcounter = TwinkleConfig.batchdeleteChunks;
twinklebatchdelete.unlinkCache = []; // Clear the cache
var pages = work.popshift();
twinklebatchdelete.currentDeleteCounter = pages.length;
twinklebatchdelete.currentUnlinkCounter = pages.length;
for( var i = 0; i < pages.length; ++i ) {
var page = pages[i];