Show add another bike link after creating bike

This commit is contained in:
Jason Denney
2014-05-04 11:14:50 -04:00
parent b9b6ed5ca0
commit 5c4007a1be
3 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ $("#add_bike_submit").click(function(){
contentType: 'application/json',
dataType: "json",
success: function(data, status, xhr){
window.location = data.bikes[0].id;
window.location = data.bikes[0].id + "?add_bike=1";
},
error: function(data, status ){
displayFormErrors(data.responseJSON);