File manager - Edit - /home/antilam/web/antilam.ru/public_html/wp-content/themes/woodmart/js/scripts/menu/searchCatDropdown.min.js
Back
!function(e){woodmartThemeModule.simpleDropdown=function(){e(".wd-search-cat").each(function(){var d=e(this),t=d.find(".wd-search-cat-btn"),n=d.find("> input"),i=d.find("> .wd-dropdown"),a=d.parent().parent().find(".s");function o(){if(!(woodmartThemeModule.$window.width()<=768||a.hasClass("wd-padding-inited")||"yes"!==woodmart_settings.search_input_padding)){var e=d.innerWidth()+d.parent().siblings(".searchsubmit").innerWidth()+17,t="padding-right";woodmartThemeModule.$body.hasClass("rtl")&&(t="padding-left"),a.css(t,e),a.addClass("wd-padding-inited")}}a.on("focus",function(){o()}),t.on("click",function(t){t.preventDefault(),void 0!==e.fn.devbridgeAutocomplete&&d.siblings('[type="text"]').devbridgeAutocomplete("hide")}),i.on("click","a",function(a){a.preventDefault();var r=e(this),s=r.data("val"),l=r.text();i.find(".current-item").removeClass("current-item"),r.parent().addClass("current-item"),0!==s?(i.find("ul:not(.children) > li:first-child").show(),n.attr("disabled",null)):0===s&&(i.find("ul:not(.children) > li:first-child").hide(),n.attr("disabled","disabled")),t.find("span").text(l),n.val(s),n.closest("form.woodmart-ajax-search").find('[type="text"]').trigger("cat_selected"),d.removeClass("wd-opened"),o()})})},e(document).ready(function(){woodmartThemeModule.simpleDropdown()}),window.addEventListener("wdUpdatedHeader",function(){woodmartThemeModule.simpleDropdown()})}(jQuery);
| ver. 1.4 |
Github
|
.
| PHP 8.4.22 | Generation time: 0.12 |
proxy
|
phpinfo
|
Settings