diff --git a/assets/javascripts/vehicles.js.coffee b/assets/javascripts/vehicles.js.coffee index 8fcd65f..8f65de8 100644 --- a/assets/javascripts/vehicles.js.coffee +++ b/assets/javascripts/vehicles.js.coffee @@ -3,12 +3,12 @@ # You can use CoffeeScript in this file: http://coffeescript.org/ $ -> - $(document).on 'change', '#vehicles_select', (evt) -> + $(document).on 'change', '#customer_id', (evt) -> $.ajax 'update_vehicles', type: 'GET' dataType: 'script' data: { - vehicle_id: $("#vehicles_select option:selected").val() + customer_id: $("#customer_id option:selected").val() } error: (jqXHR, textStatus, errorThrown) -> console.log("AJAX Error: #{textStatus}")