mirror of
				https://github.com/fspc/Yellow-Bike-Database.git
				synced 2025-10-30 16:35:35 -04:00 
			
		
		
		
	If volunteer has no hours for new year and is a member, this assings 0 to remaining.
* otherwise spinner spins infinitely, and membership discount is not applied.
This commit is contained in:
		
							parent
							
								
									3e76e145c6
								
							
						
					
					
						commit
						df31281ef8
					
				| @ -1090,13 +1090,17 @@ $(function() { | ||||
| 					if (obj.volunteer) { | ||||
| 						volunteer = $.parseJSON(obj.volunteer); | ||||
| 						if (volunteer.hasOwnProperty(year)) { | ||||
| 							remaining = obj.current_year_volunteer_hours - volunteer[year].volunteer_hours_redeemed; | ||||
| 							remaining = obj.current_year_volunteer_hours - volunteer[year].volunteer_hours_redeemed;							 | ||||
| 							vhr = volunteer[year].volunteer_hours_redeemed; | ||||
| 							max_bikes_earned = volunteer[year].max_bike_earned; | ||||
| 						} | ||||
| 					} else { | ||||
| 						vhr = 0; | ||||
| 					}			 | ||||
| 					}					 | ||||
| 					 | ||||
| 					if (obj.current_year_volunteer_hours === null) { | ||||
| 						remaining = 0; | ||||
| 					}					 | ||||
| 					 | ||||
| 					var title = obj.normal_full_name + "\r\n" + | ||||
| 											obj.email + "\r\n" + | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user