Correct initialization and counter.

This commit is contained in:
Bradley M. Kuhn 2015-03-11 18:42:40 -07:00
parent 1eddf3fd09
commit 7ea7e8ef60

View file

@ -41,11 +41,12 @@ $(document).ready(function() {
$('span#fundraiser-donation-count').text(donationCount); $('span#fundraiser-donation-count').text(donationCount);
} else { } else {
$('span#fundraiser-donation-count').text(curDonationCount.toLocaleString()); $('span#fundraiser-donation-count').text(curDonationCount.toLocaleString());
incrementDonationCount += incrementDonationCount; curDonationCount += incrementDonationCount;
setTimeout(riseDonationCount, 50); setTimeout(riseDonationCount, 50);
} }
} }
if (noCommaDonationCount > 0) { if (noCommaDonationCount > 0) {
$('span#fundraiser-donation-count').text("");
riseDonationCount(); riseDonationCount();
} }
if (noCommaSoFar > 0.00 && noCommaGoal > 0.00) { if (noCommaSoFar > 0.00 && noCommaGoal > 0.00) {