Update application.js

This commit is contained in:
2017-03-22 21:34:04 -04:00
committed by GitHub
parent 853b7ad804
commit 48b6df0cef

View File

@@ -1,11 +1,9 @@
$(function() {
$("input#issue_customer").autocomplete({
source: function (request, response) {
$.ajax({
url: "/filter_vehicles_by_customer",
type: "GET",
data: { selected_customer: $("input#issue_customer").val() }
});
}
$("input#issue_customer").on("change", function() {
$.ajax({
url: "/filter_vehicles_by_customer",
type: "GET",
data: { selected_customer: $("input#issue_customer").val() }
});
});
});