Changeset - 52bcf1152af8
[Not reviewed]
0 1 0
Brett Smith (brett) - 5 years ago 2016-11-29 18:29:12
brett@sfconservancy.org
js: Set default noCommaSiteMiddleGoal.
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
www/conservancy/static/js/supporter-page.js
Show inline comments
...
 
@@ -20,12 +20,15 @@ $window.load(function() {
 

	
 
$(document).ready(function() {
 
    var siteFinalGoal = $('span#site-fundraiser-final-goal').text();
 
    var noCommaSiteFinalGoal = parseInt(siteFinalGoal.replace(/,/g, ""));
 
    var siteMiddleGoal = $('span#site-fundraiser-middle-goal').text();
 
    var noCommaSiteMiddleGoal = parseInt(siteMiddleGoal.replace(/,/g, ""));
 
    if (!noCommaSiteMiddleGoal) {
 
        noCommaSiteMiddleGoal = 0;
 
    }
 
    var siteSoFar = $('span#site-fundraiser-so-far').text();
 
    var noCommaSiteSoFar = parseInt(siteSoFar.replace(/,/g, ""));
 
    var siteMatchCount = $('span#site-fundraiser-match-count').text();
 
    var noCommaSiteMatchCount = parseInt(siteMatchCount.replace(/,/g, ""));
 
    if (! noCommaSiteMatchCount) {
 
        noCommaSiteMatchCount = "0";
0 comments (0 inline, 0 general)