mirror of
				https://github.com/fspc/BikeShed-1.git
				synced 2025-10-31 08:55:36 -04:00 
			
		
		
		
	Redirect correctly after creating a bike
This commit is contained in:
		
							parent
							
								
									64e907b6f7
								
							
						
					
					
						commit
						b1ddcfb867
					
				| @ -21,7 +21,7 @@ $("#add_bike_submit").click(function(){ | ||||
|     contentType: 'application/json', | ||||
|     dataType: "json", | ||||
|     success: function(data, status, xhr){ | ||||
|       window.location = data.bikes[0].href; | ||||
|       window.location = data.bikes[0].id; | ||||
|     }, | ||||
|     error: function(data, status ){ | ||||
|       displayFormErrors(data.responseJSON); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user