Use same fields for add and edit wish

This commit is contained in:
Jay Trees 2022-04-08 13:37:22 +02:00
parent 1fde8a81be
commit 6c47875d78
13 changed files with 111 additions and 108 deletions

View file

@ -55,8 +55,6 @@ $(function () {
/** Update URL */
urlParams.set('id', wishlistValue);
console.log(wishlistValue);
fetch('/src/api/url.php?url=' + window.btoa(urlParams.toString()), {
method: 'GET'
})
@ -368,8 +366,8 @@ $(function () {
modalWishlistWishAdd.find('[name="wishlist_id"]').val($('.ui.dropdown.wishlists').dropdown('get value'));
modalWishlistWishAdd
.modal({
autoShow : true,
onApprove: function (buttonAdd) {
autoShow : true,
onApprove : function (buttonAdd) {
buttonAdd.addClass('loading');
var form = $('.form.wishlist-wish-add');