Refactor
This commit is contained in:
parent
42ae1e63bd
commit
38c53bfe34
2 changed files with 16 additions and 16 deletions
|
@ -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',
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue