MediaWiki:MonthlyConvert.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
allow MC for Apple Pay |
add code to validate and update button when other amount input changes |
||
Line 242: | Line 242: | ||
params.recurring = true; |
params.recurring = true; |
||
callback( params ); |
callback( params ); |
||
}); |
|||
$('#mc-other-amount-input').on('input change', function() { |
|||
if ( mc.validateOtherAmount() ) { |
|||
$( '.mc-amt-custom' ).text( mc.formatAmount( mc.getOtherAmount(), currency, locale ) ); |
|||
} else { |
|||
$( '.mc-amt-custom' ).text( '' ); |
|||
} |
|||
}); |
}); |
||