mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update vehicles.js.coffee
This commit is contained in:
@@ -3,12 +3,12 @@
|
|||||||
# You can use CoffeeScript in this file: http://coffeescript.org/
|
# 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',
|
$.ajax 'update_vehicles',
|
||||||
type: 'GET'
|
type: 'GET'
|
||||||
dataType: 'script'
|
dataType: 'script'
|
||||||
data: {
|
data: {
|
||||||
vehicle_id: $("#vehicles_select option:selected").val()
|
customer_id: $("#customer_id option:selected").val()
|
||||||
}
|
}
|
||||||
error: (jqXHR, textStatus, errorThrown) ->
|
error: (jqXHR, textStatus, errorThrown) ->
|
||||||
console.log("AJAX Error: #{textStatus}")
|
console.log("AJAX Error: #{textStatus}")
|
||||||
|
|||||||
Reference in New Issue
Block a user