Changeset - 9813a0795faf
[Not reviewed]
0 1 0
Bradley Kuhn (bkuhn) - 6 years ago 2016-01-19 04:18:49
bkuhn@ebb.org
When we're at the middle goal, drop it immediately.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
www/conservancy/static/js/supporter-page.js
Show inline comments
...
 
@@ -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, ",");
0 comments (0 inline, 0 general)