MediaWiki:Resources/landingpage.js: Difference between revisions

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