From 55974feb4ca9870fe1886547f8dddce57e6bf86e Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Sun, 9 Feb 2014 18:22:33 -0500 Subject: [PATCH] Parse float for seat tube height --- app/assets/javascripts/bikes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/bikes.js b/app/assets/javascripts/bikes.js index c281230..58eb18a 100644 --- a/app/assets/javascripts/bikes.js +++ b/app/assets/javascripts/bikes.js @@ -8,7 +8,7 @@ $("#add_bike_submit").click(function(){ shop_id: parseInt($("#shop_id").val()), model: $("#model").val(), bike_style_id: parseInt($('input[name=bike_style]:checked').val()), - seat_tube_height: parseInt($("#seat_tube_height").val()), + seat_tube_height: parseFloat($("#seat_tube_height").val()), bike_condition_id: parseInt($('input[name=bike_condition]:checked').val()), bike_purpose_id: 1, bike_wheel_size_id: parseInt($("#bike_wheel_size_id").val()),