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