Refactor
This commit is contained in:
parent
d341e2b35c
commit
5859dbce10
5 changed files with 18 additions and 18 deletions
|
@ -444,10 +444,12 @@ $(function () {
|
|||
$(document).on('click', '.button.wishlist-wish-add', function () {
|
||||
validateURL = true;
|
||||
|
||||
/** Form */
|
||||
var formAdd = $('.form.wishlist-wish-add');
|
||||
formAdd.trigger('reset');
|
||||
formAdd.find('.dropdown').dropdown('restore defaults');
|
||||
|
||||
/** Modal */
|
||||
var modalWishlistWishAdd = $('.ui.modal.wishlist-wish-add');
|
||||
modalWishlistWishAdd.find('[name="wishlist_id"]').val($('.ui.dropdown.wishlists').dropdown('get value'));
|
||||
modalWishlistWishAdd
|
||||
|
@ -585,8 +587,6 @@ $(function () {
|
|||
.then(handleFetchError)
|
||||
.then(handleFetchResponse)
|
||||
.then(function(response) {
|
||||
console.log(response);
|
||||
|
||||
$('body').toast({ message: text.toast_wish_update });
|
||||
|
||||
wishlistsRefresh();
|
||||
|
@ -614,8 +614,6 @@ $(function () {
|
|||
.then(handleFetchError)
|
||||
.then(handleFetchResponse)
|
||||
.then(function(response) {
|
||||
console.log(response);
|
||||
|
||||
$('body').toast({ message: text.toast_wish_update });
|
||||
|
||||
wishlistsRefresh();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue