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', icon: 'success',
confirmButtonText: 'OK', confirmButtonText: 'OK',
confirmButtonColor: '#22c55e' confirmButtonColor: '#22c55e'
}).then(() => {
// 👉 Redirect ke halaman index
window.location.href = '@Url.Action("Index", "ChecklistHarian")';
}); });
} }
}); });

View File

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

View File

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

View File

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