17,230
edits
(load spinner) |
No edit summary |
||
Line 8: | Line 8: | ||
// patrol link click handler | // patrol link click handler | ||
$patrolAllLink.click(function() { | $patrolAllLink.click(function() { | ||
// replace text with spinner | // replace text with spinner | ||
var $spinner = $.createSpinner({ size :'small', type: 'inline' }); | mw.loader.using('jquery.spinner').then(function() { | ||
var $spinner = $.createSpinner({ size :'small', type: 'inline' }); | |||
$(this).hide().after($spinner); | |||
}); | |||
// find bounding revision ids | // find bounding revision ids | ||
Line 32: | Line 31: | ||
console.log( data ); | console.log( data ); | ||
/* | /* | ||
// mw.loader.load('mediawiki.notification'); | |||
apiRequest.postWithToken('patrol', { formatversion: 2, action: 'patrol', rcid: rcid }) | apiRequest.postWithToken('patrol', { formatversion: 2, action: 'patrol', rcid: rcid }) | ||
.done(function(data) { | .done(function(data) { |