mirror of
				https://github.com/fspc/Yellow-Bike-Database.git
				synced 2025-11-04 01:15:35 -05:00 
			
		
		
		
	Reversed previous change.
This commit is contained in:
		
							parent
							
								
									232309de70
								
							
						
					
					
						commit
						1ed32814e1
					
				@ -691,15 +691,17 @@ $(function() {
 | 
			
		||||
			// If storage date is NULL, update to 0000-00-00 on save	
 | 
			
		||||
			$("#save_transaction").click(function(e) {
 | 
			
		||||
				
 | 
			
		||||
				/*
 | 
			
		||||
				var span_or_select = $("[name='sold_to']").is("span"), err0;
 | 
			
		||||
				if(span_or_select) {
 | 
			
		||||
					err0 = error_handler(span_or_select, date_error, true, "*Patron must be signed in to complete this transaction.",e);
 | 
			
		||||
				}				
 | 
			
		||||
				*/
 | 
			
		||||
							
 | 
			
		||||
				if ( !$("#date").val().length ) {
 | 
			
		||||
					if (err0 != 1) {
 | 
			
		||||
					//if (err0 != 1) {
 | 
			
		||||
						$("#date").val("0000-00-00");
 | 
			
		||||
					}				
 | 
			
		||||
					//}				
 | 
			
		||||
				}
 | 
			
		||||
				
 | 
			
		||||
			});	
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user