Reset wish-add tabs

This commit is contained in:
grandeljay 2022-06-13 09:27:34 +02:00
parent 8307e7092e
commit f2c8163b4b

View file

@ -332,6 +332,7 @@ $(function () {
formEdit.addClass('loading'); formEdit.addClass('loading');
formEdit.trigger('reset'); formEdit.trigger('reset');
formEdit.find('.dropdown').dropdown('restore defaults'); formEdit.find('.dropdown').dropdown('restore defaults');
formEdit.find('.item[data-tab="product"]').addClass('disabled');
/** Get Wish */ /** Get Wish */
var wishID = $(this).attr('data-id'); var wishID = $(this).attr('data-id');
@ -448,6 +449,7 @@ $(function () {
var formAdd = $('.form.wishlist-wish-add'); var formAdd = $('.form.wishlist-wish-add');
formAdd.trigger('reset'); formAdd.trigger('reset');
formAdd.find('.dropdown').dropdown('restore defaults'); formAdd.find('.dropdown').dropdown('restore defaults');
formAdd.find('.item[data-tab="product"]').addClass('disabled');
/** Modal */ /** Modal */
var modalWishlistWishAdd = $('.ui.modal.wishlist-wish-add'); var modalWishlistWishAdd = $('.ui.modal.wishlist-wish-add');