When we're at the middle goal, drop it immediately.

This commit is contained in:
Bradley M. Kuhn 2016-01-18 20:18:49 -08:00
parent fd261def3a
commit 9813a0795f

View file

@ -31,7 +31,7 @@ $(document).ready(function() {
var incrementDonationCount = Math.round( (riseLevelPercent / 100) * noCommaDonationCount );
$('#siteprogressbar').empty();
if (noCommaSiteSoFar > noCommaSiteMiddleGoal) {
if (noCommaSiteSoFar >= noCommaSiteMiddleGoal) {
// We've got
var moreCount = noCommaSiteSoFar - noCommaSiteMiddleGoal;
moreCount = moreCount.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");