Velocipede's User, Sales, and Bike Inventory Web App
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 lines
247 B

$('.btn').button();
$("#add_bike_form").ajaxForm({
dataType: "json",
success: function(data){
window.location = data.bikes[0].id + "?add_bike=1";
},
error: function(data){
displayFormErrors(data.responseJSON);
}
})