????

Your IP : 18.189.178.140


Current Path : /home/multihiv/www/store/wp-content/themes/js/scripts/wc/
Upload File :
Current File : //home/multihiv/www/store/wp-content/themes/js/scripts/wc/filterDropdowns.min.js

!function(t){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.filterDropdowns()}),woodmartThemeModule.filterDropdowns=function(){function o(e){e=e.parent(".wd-widget-layered-nav-dropdown-form");woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on")&&void 0!==t.fn.pjax&&t.pjax({container:".main-page-wrapper",timeout:woodmart_settings.pjax_timeout,url:e.attr("action"),data:e.serialize(),scrollTo:!1,renderCallback:function(o,e,t){woodmartThemeModule.removeDuplicatedStylesFromHTML(e,function(e){o.html(e),t(),woodmartThemeModule.$document.trigger("wdShopPageInit"),woodmartThemeModule.$document.trigger("wood-images-loaded")})}})}t(".wd-widget-layered-nav-dropdown-form").each(function(){var e=t(this).find("select"),o=e.data("slug");e.on("change",function(){var e=t(this).val();t("input[name=filter_"+o+"]").val(e)}),t().selectWoo&&e.selectWoo({placeholder:e.data("placeholder"),minimumResultsForSearch:5,width:"100%",allowClear:!e.attr("multiple"),language:{noResults:function(){return e.data("noResults")}}}).on("select2:unselecting",function(){t(this).data("unselecting",!0)}).on("select2:opening",function(e){var o=t(this);o.data("unselecting")&&(o.removeData("unselecting"),e.preventDefault())})}),t(".wd-widget-layered-nav-dropdown__submit").on("click",function(){var e=t(this);e.siblings("select").attr("multiple")&&woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on")&&(o(e),e.prop("disabled",!0))}),t(".wd-widget-layered-nav-dropdown-form select").on("change",function(){var e=t(this);woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on")?e.attr("multiple")||o(e):e.parent().submit()})},t(document).ready(function(){woodmartThemeModule.filterDropdowns()})}(jQuery);