Update vehicles.coffee.js

This commit is contained in:
2016-09-14 08:54:29 -04:00
committed by GitHub
parent 3f0ccd79f3
commit 8126671df9

View File

@@ -1,11 +1,12 @@
$(document).on 'change', '#issue_customer_id', (evt) -> $ ->
$.ajax 'update_vehicles', $(document).on 'change', '#issue_customer_id', (evt) ->
type: 'GET' $.ajax 'update_vehicles',
dataType: 'script' type: 'GET'
data: { dataType: 'script'
customer_id: $("#issue_customer_id option:selected").val() data: {
} customer_id: $("#issue_customer_id option:selected").val()
error: (jqXHR, textStatus, errorThrown) -> }
console.log("AJAX Error: #{textStatus}") error: (jqXHR, textStatus, errorThrown) ->
success: (data, textStatus, jqXHR) -> console.log("AJAX Error: #{textStatus}")
console.log("Dynamic country select OK!") success: (data, textStatus, jqXHR) ->
console.log("Dynamic country select OK!")