From 7c7df55d55a40c6949725605e92ff07ed66a9c51 Mon Sep 17 00:00:00 2001 From: Karl Cordes Date: Thu, 15 Jun 2023 07:50:29 +1000 Subject: [PATCH] Add missing customer_edit.js --- app/webroot/js/customer_edit.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/webroot/js/customer_edit.js diff --git a/app/webroot/js/customer_edit.js b/app/webroot/js/customer_edit.js new file mode 100644 index 00000000..f99c40aa --- /dev/null +++ b/app/webroot/js/customer_edit.js @@ -0,0 +1,13 @@ + +$(function() { + + console.log("Hello"); + + // Fairly quick and easy way to make this select box editable. Good enough. + $("#CustomerPaymentTermsOptions").live('change', function(data) { + selectedOption = $("#CustomerPaymentTermsOptions").val(); + $("#CustomerPaymentTerms").val(selectedOption); + console.log(selectedOption); + }); +}); +