mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-21 23:52:31 -05:00
Allow dashboard updates for models that have only files or images
This commit is contained in:
parent
1082c0f39b
commit
f15fb617ff
1 changed files with 18 additions and 14 deletions
4
resources/assets/js/dashboard.js
vendored
4
resources/assets/js/dashboard.js
vendored
|
@ -628,6 +628,7 @@ function editItemInit() {
|
|||
getFormData();
|
||||
|
||||
// submit the update
|
||||
if (Object.keys(formData.columns).length) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/dashboard/update",
|
||||
|
@ -643,6 +644,9 @@ function editItemInit() {
|
|||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
uploadImage(formData.id, 0);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue