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