mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-26 00:51:26 -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
|
// initialize back button
|
||||||
$backButton.on("click", function() {
|
$backButton.on("click", function() {
|
||||||
if (!submitting) {
|
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;
|
window.location.href = "/dashboard/" + path;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@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() }}" />
|
<input type="hidden" name="_token" id="_token" value="{{ csrf_token() }}" />
|
||||||
|
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
|
|
Loading…
Reference in a new issue