MediaWiki:Gadget-twinklefluff.js: Perbedaan revisi

Repo at 3de14a0: Update from Github
(Repo at 5c1e7e3: Update from Github)
(Repo at 3de14a0: Update from Github)
 
if (revertToRevID !== apiobj.params.rev) {
apiobj.statelem.error('TheRevisi retrievedyang revisiondiambil doestidak notcocok matchdengan therevisi requestedyang revisiondiminta. StoppingMenghentikan revertpengembalian.');
return;
}
 
var optional_summary = prompt('PleaseMohon specifyberi aalasan reason for the revertpengembalian: ', ''); // padded out to widen prompt in Firefox
if (optional_summary === null) {
apiobj.statelem.error('Dibatalkan oleh pengguna.');
return;
}
var summary = Twinkle.fluff.formatSummary('RevertedDikembalikan toke revisionrevisi ' + revertToRevID + ' byoleh $USER', revertToUser, optional_summary);
 
var query = {
Morebits.wiki.actionCompleted.notice = 'Pengembalian selesai';
 
var wikipedia_api = new Morebits.wiki.api('SavingMenyimpan revertedkonten contentsyang dikembalikan', query, Twinkle.fluff.callbacks.complete, apiobj.statelem);
wikipedia_api.params = apiobj.params;
wikipedia_api.post();
 
if (typeof $(xmlDoc).find('actions').attr('edit') === 'undefined') {
self.statelem.error("Unable'Tidak tobisa editmenyunting the pagehalaman, it'skemungkinan probably protecteddilindungi."');
return;
}
}
 
summary = Twinkle.fluff.formatSummary('Membatalkan ' + params.count + (params.count > 1 ? ' editssuntingan' : ' editsuntingan') +
' by $USER', params.user, extra_summary);
break;