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 -
+