You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
547 B
19 lines
547 B
/* global woodmart_settings */
|
|
(function($) {
|
|
woodmartThemeModule.$document.on('wdShopPageInit wdArrowsLoadProducts wdLoadMoreLoadProducts wdProductsTabsLoaded', function () {
|
|
woodmartThemeModule.swatchesLimit();
|
|
});
|
|
|
|
woodmartThemeModule.swatchesLimit = function() {
|
|
$('.wd-swatches-divider').on('click', function() {
|
|
var $this = $(this).parent();
|
|
|
|
$this.find('.wd-swatch').removeClass('wd-hidden');
|
|
$this.addClass('wd-all-shown');
|
|
});
|
|
};
|
|
|
|
$(document).ready(function() {
|
|
woodmartThemeModule.swatchesLimit();
|
|
});
|
|
})(jQuery);
|
|
|