Perform math on number variable without comma
The math performed for the number of donors should be done on the number without the comma, so that NaN doesn't show on the site.
This commit is contained in:
		
							parent
							
								
									0b026888d9
								
							
						
					
					
						commit
						83c97a0029
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -16,7 +16,7 @@ $(document).ready(function() { | |||
|     var incrementSoFar = 0.00; | ||||
|     var curDonationCount = 0; | ||||
|     var riseLevelPercent = 0.5; | ||||
|     var incrementDonationCount = Math.round( (riseLevelPercent / 100) * donationCount ); | ||||
|     var incrementDonationCount = Math.round( (riseLevelPercent / 100) * noCommaDonationCount ); | ||||
| 
 | ||||
|     $('span#fundraiser-percentage').css({ 'color'        : 'green', | ||||
|                                           'font-weight'  : 'bold', | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Bradley M. Kuhn
						Bradley M. Kuhn