2 * JavaScript for rollback confirmation prompt
6 var postRollback = function ( url
) {
7 var $form
= $( '<form>', {
11 $form
.appendTo( 'body' ).trigger( 'submit' );
14 $( '#mw-content-text' ).confirmable( {
16 confirm
: mw
.msg( 'rollback-confirmation-confirm', $( this ).data( 'rollback-count' ) ),
17 yes
: mw
.msg( 'rollback-confirmation-yes' ),
18 no
: mw
.msg( 'rollback-confirmation-no' )
20 delegate
: '.mw-rollback-link a',
21 handler: function ( e
) {
23 postRollback( $( this ).attr( 'href' ) );