Change close button label to OK in non-confirm modal
This commit is contained in:
@@ -377,7 +377,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
} else {
|
||||
$mTitle.className = 'text-lg font-bold text-[#1a2b49]';
|
||||
$mTitle.style.color = ''; // reset style
|
||||
$mAct.innerHTML = `<button id="btnClose" class="w-full sm:w-auto btn-secondary !px-6 rounded-xl font-bold">Đóng</button>`;
|
||||
$mAct.innerHTML = `<button id="btnClose" class="w-full sm:w-auto btn-secondary !px-6 rounded-xl font-bold">OK</button>`;
|
||||
document.getElementById('btnClose').onclick = () => window.closeModal('customModal');
|
||||
}
|
||||
window.openModal('customModal');
|
||||
|
||||
Reference in New Issue
Block a user