MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
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: | Line 312: | ||
} |
} |
||
otherVal = parseFloat( otherVal ); |
otherVal = parseFloat( otherVal ); |
||
$("#input_amount_other"). |
$("#input_amount_other").prop( 'checked', true ); |
||
$("#input_amount_other_box").val( otherVal ); |
$("#input_amount_other_box").val( otherVal ); |
||
} |
} |
||
Line 379: | Line 379: | ||
// hide frequency options in India, where we can only handle one-time donations |
// hide frequency options in India, where we can only handle one-time donations |
||
if (document.paypalcontribution.country.value === 'IN') { |
if (document.paypalcontribution.country.value === 'IN') { |
||
$("#frequency_onetime"). |
$("#frequency_onetime").prop('checked', true); |
||
$(".frequency-options").hide(); |
$(".frequency-options").hide(); |
||
$("#cancel-monthly").hide(); |
$("#cancel-monthly").hide(); |