MediaWiki:Resources/landingpage.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
move hpc and otherVal adjustments into functions |
No edit summary |
||
Line 81: | Line 81: | ||
var symbols = { |
var symbols = { |
||
'USD' : '$', |
'USD' : '$\t', |
||
'AUD' : '$', |
'AUD' : '$\t', |
||
'CAD' : '$', |
'CAD' : '$\t', |
||
'EUR' : '€', |
'EUR' : '€\t', |
||
'GBP' : '£', |
'GBP' : '£\t', |
||
'NZD' : '$' |
'NZD' : '$\t' |
||
}; |
}; |
||
Line 115: | Line 115: | ||
// I know an && could be used here, but they are getting escaped |
// I know an && could be used here, but they are getting escaped |
||
radio.val( ask[j] ); |
radio.val( ask[j] ); |
||
label.text( symbol |
label.text( symbol.replace('\t', ask[j]) ); |
||
} |
} |
||
} |
} |
||
Line 134: | Line 134: | ||
var considerAmountString = ""; |
var considerAmountString = ""; |
||
for( var k = 0; k < appealask.length; k++ ) { |
for( var k = 0; k < appealask.length; k++ ) { |
||
considerAmountString += symbol |
considerAmountString += symbol.replace('\t', ask[j]) + ', '; |
||
} |
} |
||
considerAmountString = considerAmountString.trim(); |
considerAmountString = considerAmountString.trim(); |