Files
sifatbaho-php/resources/js/order-edit.js
2026-04-05 05:31:24 +05:00

23 lines
891 B
JavaScript
Executable File
Vendored

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');
}
}