Update vehicles.coffee.js

This commit is contained in:
2016-09-14 08:47:56 -04:00
committed by GitHub
parent e61023acd5
commit 3f0ccd79f3

View File

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