mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	fix validation of alternative file upload/import fields
This commit is contained in:
		
							parent
							
								
									95cdf17527
								
							
						
					
					
						commit
						47f43a47ba
					
				|  | @ -81,7 +81,7 @@ $(document).ready(function() { | |||
| 			return true; | ||||
| 		var valid = false; | ||||
| 		$.each(params, function( index, value ) { | ||||
| 			if(params.val != '') | ||||
| 			if(value.val() != '' && typeof value.val() != 'undefined') | ||||
| 				valid = true | ||||
| 		}); | ||||
| 		return valid; | ||||
|  | @ -113,7 +113,6 @@ $(document).ready(function() { | |||
| 		errorPlacement: function( error, element ) { | ||||
| 			if ( element.is( ":file" ) ) { | ||||
| 				error.appendTo( element.parent().parent().parent()); | ||||
| console.log(element); | ||||
| 			} else { | ||||
| 				error.appendTo( element.parent()); | ||||
| 			} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann