From 373375a8ad0cb33df52c7d9c70dcdeedd9463da5 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Mon, 23 Apr 2018 23:20:35 -0400 Subject: [PATCH] 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 --- resources/assets/js/dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/js/dashboard.js b/resources/assets/js/dashboard.js index d15ef84..cf443be 100644 --- a/resources/assets/js/dashboard.js +++ b/resources/assets/js/dashboard.js @@ -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