Select general tab on modal show

This commit is contained in:
grandeljay 2022-06-13 09:52:45 +02:00
parent 9a86de786f
commit 95bbc03f2b
2 changed files with 2 additions and 5 deletions

View file

@ -1,10 +1,5 @@
$(function () {
/**
* Tabs
*/
$('.menu.wish-add .item').tab();
/**
* Priority
*/

View file

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