MediaWiki:Common.js: Difference between revisions

Content deleted Content added
rm IE8 checked workaround for amounts (but leave for frequency as still used by other browsers there)
use prop() instead of attr() for 'checked' - https://stackoverflow.com/questions/5874652/prop-vs-attr
Line 312:
}
otherVal = parseFloat( otherVal );
$("#input_amount_other").attrprop( 'checked', true );
$("#input_amount_other_box").val( otherVal );
}
Line 379:
// hide frequency options in India, where we can only handle one-time donations
if (document.paypalcontribution.country.value === 'IN') {
$("#frequency_onetime").attrprop('checked', true);
$(".frequency-options").hide();
$("#cancel-monthly").hide();