Merge branch 'kzrl/64-editable-payment-terms' into 'master'
Add missing customer_edit.js See merge request minimalist.software/cmc-sales!5
This commit is contained in:
commit
6e2abefd1c
13
app/webroot/js/customer_edit.js
Normal file
13
app/webroot/js/customer_edit.js
Normal file
|
|
@ -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);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
Loading…
Reference in a new issue