MediaWiki:MonthlyConvert.js: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
yes and no buttons
No edit summary
Line 234: Line 234:
params.recurring = true;
params.recurring = true;
callback( params );
callback( params );
});
$( '.mc-donate-monthly-button' ).on( 'click', function() {
if ( mc.validateOtherAmount() ) {
// TODO: decide on extradata to add
params.amount = mc.getOtherAmount();
params.recurring = true;
callback( params );
}
});
});
Line 259: Line 267:
$( '.mc-choice' ).fadeIn();
$( '.mc-choice' ).fadeIn();
} );
} );
}
} );

$( '.mc-donate-monthly-button' ).on( 'click keypress', function ( e ) {
if ( e.which === 13 || e.type === 'click' ) {
mc.validateOtherAmount();
}
}
} );
} );