MediaWiki:Gadget-SureSureSure.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
+hook
Maintenance: Move wait for 'mediawiki.page.patrol.ajax' from MediaWiki:Gadgets-definition to here (will load faster for rollback case, and needed for the next edit)
Riga 6:
* to thank someone, but it doesn't for rollbacking. asd
*
* TODO: thisThis snippet should coexistcoexists with the 'mediawiki.page.MediaWiki core patrol.ajax'js ResourceLoadercode moduleby somehow.making
* sure its code runs first, and then our code calls off('click') afterward.
*
* @license [[WTFPL]] or [[GNU GPL]] or [[CC BY SA 3.0]] at your opinion
Line 36 ⟶ 37:
// @see mediawiki.page.patrol.ajax ResourceLoader module
if( opts.disablePatrolAjax ) {
mw.loader.using( 'mediawiki.page.patrol.ajax' ).then( function () {
$( '.patrollink[data-mw="interface"] a' ).off( 'click' );
} );
}
} );