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:
Kevin MacMartin 2018-04-23 23:20:35 -04:00
parent 8c0dc48d2d
commit 373375a8ad

View file

@ -361,7 +361,7 @@ function editItemInit() {
// functionality to run on success
const returnSuccess = function() {
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