X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki%2Fpage%2Fpatrol.ajax.js;h=d8fb249dc69ec207e376223ab2a22a66db0523c4;hb=85ac1b5d7c7ca50a93f2d16639cdde2f46bc133e;hp=6d6d46dd9432b017eb0f8539176ca066511dcb64;hpb=ce079cf6ad79ca8d3360817f809b219d166f9153;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/mediawiki/page/patrol.ajax.js b/resources/src/mediawiki/page/patrol.ajax.js index 6d6d46dd94..d8fb249dc6 100644 --- a/resources/src/mediawiki/page/patrol.ajax.js +++ b/resources/src/mediawiki/page/patrol.ajax.js @@ -33,8 +33,7 @@ formatversion: 2, action: 'patrol', rcid: rcid - } ) - .done( function ( data ) { + } ).done( function ( data ) { var title; // Remove all patrollinks from the page (including any spinners inside). $patrolLinks.closest( '.patrollink' ).remove(); @@ -46,8 +45,7 @@ // This should never happen as errors should trigger fail mw.notify( mw.msg( 'markedaspatrollederrornotify' ), { type: 'error' } ); } - } ) - .fail( function ( error ) { + } ).fail( function ( error ) { $spinner.remove(); // Restore the patrol link. This allows the user to try again // (or open it in a new window, bypassing this ajax module).