feat: after save can redirect to index page

main-dlh
Regiaaaaaa 2025-12-01 16:10:02 +07:00
parent d8d99148cf
commit 39af079336
4 changed files with 11 additions and 2 deletions

View File

@ -198,6 +198,9 @@ $(document).ready(function () {
icon: 'success',
confirmButtonText: 'OK',
confirmButtonColor: '#22c55e'
}).then(() => {
// 👉 Redirect ke halaman index
window.location.href = '@Url.Action("Index", "ChecklistHarian")';
});
}
});

View File

@ -114,7 +114,7 @@
<button
id="btnSimpanLaporan"
type="submit"
class="btn btn-success rounded-full text-white border-none">
class="btn btn-primary rounded-full text-white border-none">
Simpan
</button>
</div>
@ -146,6 +146,8 @@
icon: 'success',
confirmButtonText: 'OK',
confirmButtonColor: '#22c55e'
}).then(() => {
window.location.href = '@Url.Action("Index", "LaporanRwRw")';
});
}
});

View File

@ -217,6 +217,8 @@
icon: 'success',
confirmButtonColor: '#22c55e',
confirmButtonText: 'OK'
}).then(() => {
window.location.href = '@Url.Action("Index", "ProfilRw")';
});
});
});

View File

@ -263,7 +263,9 @@
icon: 'success',
confirmButtonText: 'OK',
confirmButtonColor: '#22c55e'
});
}).then(() => {
window.location.href = '@Url.Action("Index", "ProfilRw")';
});
}
});
});