sifatbaho
This commit is contained in:
22
resources/js/pages/orders/create.js
vendored
Executable file
22
resources/js/pages/orders/create.js
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
let handleCustomerClick = function (element) {
|
||||
var customerBlock = document.getElementById("customer-block");
|
||||
var customerCompanyBlock = document.getElementById("customer-company-block");
|
||||
if (element === 'physical') {
|
||||
customerBlock.classList.remove('d-none');
|
||||
customerCompanyBlock.classList.add('d-none');
|
||||
} else {
|
||||
customerBlock.classList.add('d-none');
|
||||
customerCompanyBlock.classList.remove('d-none');
|
||||
}
|
||||
}
|
||||
let handleOwnerClick = function (element) {
|
||||
var ownerBlock = document.getElementById("owner-block");
|
||||
var ownerCompanyBlock = document.getElementById("owner-company-block");
|
||||
if (element === 'physical') {
|
||||
ownerBlock.classList.remove('d-none');
|
||||
ownerCompanyBlock.classList.add('d-none');
|
||||
} else {
|
||||
ownerBlock.classList.add('d-none');
|
||||
ownerCompanyBlock.classList.remove('d-none');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user