mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-09 11:16:39 -05:00
Reload the same edit-item page after hitting the update button so the user can see their changes in action before moving back to the list
This commit is contained in:
parent
8c0dc48d2d
commit
373375a8ad
1 changed files with 1 additions and 1 deletions
2
resources/assets/js/dashboard.js
vendored
2
resources/assets/js/dashboard.js
vendored
|
@ -361,7 +361,7 @@ function editItemInit() {
|
||||||
// functionality to run on success
|
// functionality to run on success
|
||||||
const returnSuccess = function() {
|
const returnSuccess = function() {
|
||||||
hideLoadingModal();
|
hideLoadingModal();
|
||||||
window.location.href = "/dashboard/edit/" + model;
|
window.location.href = `/dashboard/edit/${model}/${row_id}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
// add the file from the file upload box for file-upload class elements
|
// add the file from the file upload box for file-upload class elements
|
||||||
|
|
Loading…
Reference in a new issue