mirror of
				https://github.com/fspc/Yellow-Bike-Database.git
				synced 2025-10-31 00:45:35 -04:00 
			
		
		
		
	Provides error checking when sold_to or sold_by are not logged-in.
This commit is contained in:
		
							parent
							
								
									2d3a184e84
								
							
						
					
					
						commit
						aa0f870d28
					
				| @ -487,9 +487,10 @@ $(function() { | ||||
| 
 | ||||
| 
 | ||||
| 	// error handler for edited transactions		
 | ||||
| 	function error_handler(input,error_span,error,error_text,event) {		 | ||||
| 	function error_handler(input,error_span,error,error_text,event) {	 | ||||
| 		 | ||||
| 		var trans_error = 0; | ||||
| 		if ( input == error ) { | ||||
| 		if ( (error === "no_selection" && !input) || input == error ) { | ||||
| 			if ( !error_span.is(":visible") ) { | ||||
| 				error_span.show();		 | ||||
| 			}									 | ||||
| @ -557,7 +558,7 @@ $(function() { | ||||
| 				} | ||||
| 				 | ||||
| 				// description error		
 | ||||
| 				if ( $("#transaction_type").val() != "Deposit" ) {	// Deposit description is implicit
 | ||||
| 				if ( $("#transaction_type").val() != "Deposit" && $("#transaction_type").val() != "Soft Drinks" ) {	// Deposit description is implicit
 | ||||
| 					err5 = error_handler(description.val(), description_error, "","*Required: a detailed description",e); | ||||
| 				} | ||||
| 				 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user