From 72bf10680fd496b1b55c5f860f4bc8aa2daaff1b Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 3 Apr 2017 21:57:56 -0400 Subject: [PATCH] Added ajax to update estimates --- assets/javascripts/application.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/javascripts/application.js b/assets/javascripts/application.js index 09a670c..ef95764 100644 --- a/assets/javascripts/application.js +++ b/assets/javascripts/application.js @@ -5,5 +5,11 @@ $(function() { type: "GET", data: { selected_customer: $("input#issue_customer_id").val() } }); + + $.ajax({ + url: "/filter_estimates_by_customer", + type: "GET", + data: { selected_customer: $("input#issue_customer_id").val() } + }); }); });