hcornet 506716e703
Some checks failed
Deployment Verification / deploy-and-test (push) Failing after 29s
first sync
2025-03-04 07:59:21 +01:00

23 lines
612 B
HTML

<script>
function submit_new_customer() {
$.ajax({
url: '/customer/add',
type: "POST",
data: $('form#form_new_customer').serialize(),
dataType: "json",
success: function (data) {
jsdata = data;
if (jsdata.status == "success") {
$('#modal_add_customer').modal();
notify_success(jsdata.message);
} else {
$('#modal_customer_message').text(jsdata.message);
}
},
error: function (error) {
notify_error(error);
}
});
}
</script>