Perform math on number variable without comma

The math performed for the number of donors should be done on the number
without the comma, so that NaN doesn't show on the site.
This commit is contained in:
Bradley M. Kuhn 2015-03-21 10:03:28 -04:00
parent 0b026888d9
commit 83c97a0029

View file

@ -16,7 +16,7 @@ $(document).ready(function() {
var incrementSoFar = 0.00; var incrementSoFar = 0.00;
var curDonationCount = 0; var curDonationCount = 0;
var riseLevelPercent = 0.5; var riseLevelPercent = 0.5;
var incrementDonationCount = Math.round( (riseLevelPercent / 100) * donationCount ); var incrementDonationCount = Math.round( (riseLevelPercent / 100) * noCommaDonationCount );
$('span#fundraiser-percentage').css({ 'color' : 'green', $('span#fundraiser-percentage').css({ 'color' : 'green',
'font-weight' : 'bold', 'font-weight' : 'bold',