This commit is contained in:
Jay Trees 2022-03-23 12:03:42 +01:00
parent 42ae1e63bd
commit 38c53bfe34
2 changed files with 16 additions and 16 deletions

View file

@ -64,7 +64,7 @@ $(function() {
action : 'update wish status',
method : 'PUT',
data : {
wish_id: card.data('id'),
wish_id : card.attr('data-id'),
wish_status : 'unavailable'
},
on : 'now',

View file

@ -325,7 +325,7 @@ $(function () {
action : 'delete wish',
method : 'DELETE',
data : {
wish_id: card.data('id'),
wish_id: card.attr('data-id'),
},
on : 'now',
onSuccess : function () {
@ -398,8 +398,8 @@ $(function () {
var formWishlistCreate = modalWishlistCreate.find('.ui.form');
var inputWishlistName = formWishlistCreate.find('[name="wishlist-name"]');
inputWishlistName.attr('placeholder', inputWishlistName.data('default'));
inputWishlistName.val(inputWishlistName.data('default'));
inputWishlistName.attr('placeholder', inputWishlistName.attr('data-default'));
inputWishlistName.val(inputWishlistName.attr('data-default'));
modalWishlistCreate
.modal({