Allow dashboard updates for models that have only files or images

This commit is contained in:
Kevin MacMartin 2018-05-10 23:22:09 -04:00
parent 1082c0f39b
commit f15fb617ff

View file

@ -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);
}
}
});
}