mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-09 19:26:38 -05:00
Fix returning to the edit-list from edit-item
This commit is contained in:
parent
22da70893a
commit
34183cb338
2 changed files with 2 additions and 2 deletions
2
resources/assets/js/dashboard.js
vendored
2
resources/assets/js/dashboard.js
vendored
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</div>
|
||||
@endif
|
||||
|
||||
<form id="edit-item" class="edit-item" data-id="{{ $id }}" data-model="{{ $model }}">
|
||||
<form id="edit-item" class="edit-item" data-id="{{ $id }}" data-model="{{ $model }}" data-path="{{ isset($path) ? $path : $model }}">
|
||||
<input type="hidden" name="_token" id="_token" value="{{ csrf_token() }}" />
|
||||
|
||||
<div class="container-fluid">
|
||||
|
|
Loading…
Reference in a new issue