MediaWiki:MonthlyConvert.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
currency_code for currency |
No edit summary |
||
Line 191: | Line 191: | ||
currency = params.currency_code, |
currency = params.currency_code, |
||
suggestedAmount = mc.getSuggestedAmount( initialAmount, currency ), |
suggestedAmount = mc.getSuggestedAmount( initialAmount, currency ), |
||
locale = 'en-US' |
locale = 'en-US', |
||
skipMc; |
|||
if ( params.recurring ) { |
if ( params.recurring ) { |
||
// Already recurring |
// Already recurring |
||
skipMc = true; |
|||
} |
} |
||
if ( donationForm.noRecurringCountries.indexOf( params.country ) !== -1 ) { |
if ( donationForm.noRecurringCountries.indexOf( params.country ) !== -1 ) { |
||
// Country where we don't offer any recurring |
// Country where we don't offer any recurring |
||
skipMc = true; |
|||
} |
} |
||
if ( suggestedAmount === 0 ) { |
if ( suggestedAmount === 0 ) { |
||
// Amount too low, or we don't have any suggestions |
// Amount too low, or we don't have any suggestions |
||
skipMc = true; |
|||
} |
} |
||
Line 215: | Line 216: | ||
// suitable method! |
// suitable method! |
||
} else { |
} else { |
||
skipMc = true; |
|||
} |
} |
||
⚫ | |||
⚫ | |||
⚫ | |||
if ( skipMc ) { |
|||
⚫ | |||
callback( params ) |
|||
} else { |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
} |
|||
} |
} |