modules/js/ext.donationInterface.monthlyConvert.js
Function init
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mc.init = function () {
var presetAmount,
locale = $( '#language' ).val() + '-' + $( '#country' ).val();
originalAmount = +$( '#amount' ).val();
currency = $( '#currency' ).val();
Function postMonthlyConvertDonate
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mc.postMonthlyConvertDonate = function ( amount, declineMonthlyConvert ) {
var sendData = {
action: 'di_recurring_convert',
format: 'json',
gateway: $( '#gateway' ).val(),