mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-09 19:26:38 -05:00
After creating a new item from the dashboard edit-item create page, send the user to the edit item edit page
This commit is contained in:
parent
880a578454
commit
26bbfd557c
1 changed files with 6 additions and 1 deletions
|
@ -306,7 +306,12 @@ function editItemInit() {
|
|||
// functionality to run on success
|
||||
const returnSuccess = function() {
|
||||
hideLoadingModal();
|
||||
|
||||
if (operation === "create") {
|
||||
window.location.href = "/" + location.href.replace(/^[^:]*:\/\/[^\/]*\//, "").replace(/\/[^/]*$/, "") + "/" + row_id;
|
||||
} else {
|
||||
window.location.href = "/dashboard/" + model;
|
||||
}
|
||||
};
|
||||
|
||||
// add the image from the image upload box for image-upload class elements
|
||||
|
|
Loading…
Reference in a new issue