MediaWiki:Gadget-twinkledelimages.js: Difference between revisions

m
1 revision imported
m (1 revision)
 
m (1 revision imported)
(One intermediate revision by the same user not shown)
Line 66: Line 66:
};
};
} else {
} else {
// prepare for a possible merge with batchdelete
alert('Dear admin, \n\n' +
'We are planning to overhaul the "Deli-batch" module; we are particularly wondering if it is worthwhile to maintain the functionality that allows "Deli-batch" to be used from pages other than category pages. \n\n' +
'Since you are invoking "Deli-batch" from a non-category page, we would appreciate it if you could inform the Twinkle team at [[WT:TW]]. If no one responds to say they are using it, this functionality may soon be removed or altered. \n\n' +
'Thanks, \nThe Twinkle team');
//form.append({ type:'div', style:'color:red;font-weight:bold;font-size:larger', label: 'This module is going away. Please use "D-batch" (batch deletion) instead.' });
query = {
query = {
'action': 'query',
'action': 'query',
Line 195: Line 201:
});
});
if( instances.length === 0 ) {
if( instances.length === 0 ) {
--twinklebatchdelete.currentUnlinkCounter;
--Twinkle.delimages.currentUnlinkCounter;
return;
return;
}
}


$.each( instances, function(k,title) {
$.each( instances, function(k,title) {
page = new Morebits.wiki.page(title, "Unlinking instances on " + title);
var page = new Morebits.wiki.page(title, "Unlinking instances on " + title);
page.setFollowRedirect(true);
page.setFollowRedirect(true);
page.setCallbackParameters({'image': self.params.image, 'reason': self.params.reason});
page.setCallbackParameters({'image': self.params.image, 'reason': self.params.reason});