feat: after save can redirect to index page
parent
d8d99148cf
commit
39af079336
|
|
@ -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")';
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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")';
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -217,6 +217,8 @@
|
|||
icon: 'success',
|
||||
confirmButtonColor: '#22c55e',
|
||||
confirmButtonText: 'OK'
|
||||
}).then(() => {
|
||||
window.location.href = '@Url.Action("Index", "ProfilRw")';
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -263,7 +263,9 @@
|
|||
icon: 'success',
|
||||
confirmButtonText: 'OK',
|
||||
confirmButtonColor: '#22c55e'
|
||||
});
|
||||
}).then(() => {
|
||||
window.location.href = '@Url.Action("Index", "ProfilRw")';
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue