From 34183cb33802e084051721b256f1c2bb32732f66 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Fri, 12 Jan 2018 00:02:16 -0500 Subject: [PATCH] Fix returning to the edit-list from edit-item --- resources/assets/js/dashboard.js | 2 +- resources/views/dashboard/edit-item.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/dashboard.js b/resources/assets/js/dashboard.js index ec73b34..6cecfae 100644 --- a/resources/assets/js/dashboard.js +++ b/resources/assets/js/dashboard.js @@ -433,7 +433,7 @@ function editItemInit() { // initialize back button $backButton.on("click", function() { if (!submitting) { - askConfirmation("Cancel and return to the " + model + " list?", function() { + askConfirmation("Cancel and return to the " + path + " list?", function() { window.location.href = "/dashboard/" + path; }); } diff --git a/resources/views/dashboard/edit-item.blade.php b/resources/views/dashboard/edit-item.blade.php index 2527a99..2c29fef 100644 --- a/resources/views/dashboard/edit-item.blade.php +++ b/resources/views/dashboard/edit-item.blade.php @@ -13,7 +13,7 @@ @endif -
+