Restore add wish form after success

This commit is contained in:
Jay 2022-04-09 19:48:13 +02:00
parent 09fdf1ed18
commit 7c55c91590

View file

@ -374,8 +374,8 @@ $(function () {
var formData = new URLSearchParams(new FormData(form[0]));
fetch('/src/api/wishes.php', {
method: 'POST',
body: formData
method : 'POST',
body : formData
})
.then(handleFetchError)
.then(handleFetchResponse)
@ -384,8 +384,9 @@ $(function () {
wishlistsRefresh();
form.trigger('reset');
form.find('.dropdown').dropdown('restore defaults');
modalWishlistWishAdd.modal('hide');
buttonAdd.removeClass('loading');
})
.catch(handleFetchCatch);