mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
Forward url on add bike/ don't display value if nil
This commit is contained in:
@@ -20,7 +20,7 @@ $("#add_bike_submit").click(function(){
|
||||
data: json_data,
|
||||
dataType: "json",
|
||||
success: function(data, status, xhr){
|
||||
//window.location = "";
|
||||
window.location = "/bikes/"+ data.bike.id;
|
||||
},
|
||||
error: function(data, status ){
|
||||
displayFormErrors(data.responseJSON);
|
||||
|
||||
Reference in New Issue
Block a user