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() { $(function() {
$("input#issue_customer").autocomplete({ $("input#issue_customer").on("change", function() {
source: function (request, response) { $.ajax({
$.ajax({ url: "/filter_vehicles_by_customer",
url: "/filter_vehicles_by_customer", type: "GET",
type: "GET", data: { selected_customer: $("input#issue_customer").val() }
data: { selected_customer: $("input#issue_customer").val() } });
});
}
}); });
}); });