Compare commits

..

No commits in common. "dcb69e9dc539c6089bc7f41392306e59e64e9c17" and "14e2e5568575aeb1312c6876866ba14f8a69de99" have entirely different histories.

2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@ export function showModal(type, title, message) {
const modalTitle = document.getElementById("modalTitle"); const modalTitle = document.getElementById("modalTitle");
const modalMessage = document.getElementById("modalMessage"); const modalMessage = document.getElementById("modalMessage");
// Reset class
modalIcon.className = "modal-icon"; modalIcon.className = "modal-icon";
if (type === "success") { if (type === "success") {
@ -27,7 +28,7 @@ export function setupModalOk() {
const modalIcon = document.getElementById("modalIcon"); const modalIcon = document.getElementById("modalIcon");
if (modalIcon.classList.contains("success")) { if (modalIcon.classList.contains("success")) {
window.location.href = "Homepage.html" window.location.href = "Login.html"; // Register sukses → ke Login
} else { } else {
closeModal(); closeModal();
} }

View File

@ -76,4 +76,4 @@ function setInputError(id) {
function clearInputStyle() { function clearInputStyle() {
this.style.borderColor = ""; this.style.borderColor = "";
this.style.boxShadow = ""; this.style.boxShadow = "";
} }