MediaWiki:Gadget-SureSureSure.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
nessuno ha mai utilizzato le opzioni, quindi le semplifico: direttamente in window.sureSureSure |
m fix _yetConfirmed |
||
Riga 19:
$( '.mw-rollback-link a' ).click( function ( event ) {
var yes = 'ok-guy-im-not-accidetally-clicking-this';
if( ! $(this).hasClass(yes) && ! window.sureSureSure
var $t = $(this);
$t.addClass(yes).text( $t.text() + ": " + window.sureSureSure
event.preventDefault();
window.sureSureSure
}
} );
Riga 29:
// actually this is the simpler way to prevent automatic patrol action
// @see mediwiki.page.patrol.ajax ResourceLoader module
if( window.sureSureSure
$( '.patrollink[data-mw="interface"] a' ).off( 'click' );
}
|