مدیاویکی:Gadget-ajaxundo.js: تفاوت میان نسخه‌ها

محتوای حذف‌شده محتوای افزوده‌شده
جز Maintenance: Replacing legacy global variable (phab:T72470)
جز Maintenance: Replacing legacy global variable (phab:T72470)
خط ۱۵:
undoId = undoIdRegex.exec( diffUndoUrl )[1],
editToken,
etUrl = mw.config.get('wgServer') + wgScriptPath + '/api.php?action=query&prop=info|revisions&intoken=edit&titles=' + encodeURIComponent( mw.config.get('wgPageName') ) + '&format=json';
$ajaxUndoLinkob.html( ' <img src="http://images2.wikia.nocookie.net/dev/images/8/82/Facebook_throbber.gif" style="vertical-align: baseline;" border="0" alt="...درحال خنثی سازی" />' );
$.getJSON( etUrl, function ( data ) {
خط ۲۱:
$.ajax( {
url: wgScriptPath + '/api.php?',
data: 'action=edit&format=json&title=' + encodeURIComponent( mw.config.get('wgPageName') ) + '&undo=' + encodeURIComponent( undoId ) + '&bot=1&token=' + encodeURIComponent( editToken ),
dataType: 'json',
type: 'POST',