Create vehicles.js.coffee

This commit is contained in:
2016-09-13 23:55:54 -04:00
committed by GitHub
parent 9c4ed3d9e1
commit 03bcff2b9a

View File

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