From 7ea7e8ef602bd4d64bfab767dd9ec51123a74009 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 11 Mar 2015 18:42:40 -0700 Subject: [PATCH] Correct initialization and counter. --- www/conservancy/static/supporter-page.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/conservancy/static/supporter-page.js b/www/conservancy/static/supporter-page.js index 19303f44..8b4a7857 100644 --- a/www/conservancy/static/supporter-page.js +++ b/www/conservancy/static/supporter-page.js @@ -41,11 +41,12 @@ $(document).ready(function() { $('span#fundraiser-donation-count').text(donationCount); } else { $('span#fundraiser-donation-count').text(curDonationCount.toLocaleString()); - incrementDonationCount += incrementDonationCount; + curDonationCount += incrementDonationCount; setTimeout(riseDonationCount, 50); } } if (noCommaDonationCount > 0) { + $('span#fundraiser-donation-count').text(""); riseDonationCount(); } if (noCommaSoFar > 0.00 && noCommaGoal > 0.00) {