Update application.js

This commit is contained in:
2017-11-13 20:59:45 -05:00
committed by GitHub
parent c21bc1333f
commit ac446723f1

View File

@@ -11,5 +11,12 @@ $(function() {
type: "GET",
data: { selected_customer: $("input#issue_customer_id").val() }
});
$("input#project_customers_id").on("change", function() {
$.ajax({
url: "/filter_vehicles_by_customer",
type: "GET",
data: { selected_customer: $("input#projects_customers_id").val() }
});
});
});