mage-eventpress/js/mage-options-framework.min.js

1 line
1.0 KiB
JavaScript
Executable File

jQuery(document).ready(function(a){jQuery(document).on("keyup","input.search-options",function(){keyword=jQuery(this).val();if(keyword!=""){a(".form-table tr th").each(function(b){title=a(this).text();title=title.toLowerCase();n=title.indexOf(keyword);if(n<0){a(this).parent().hide()}else{a(this).parent().show()}});a(".form-section .tab-content").each(function(b){a(this).show()});a(".form-section .tab-content h2").each(function(b){a(this).hide()})}else{a(".form-table tr th").each(function(b){a(this).parent().show()});a(".form-section .tab-content").each(function(b){if(b==0){a(this).addClass("active");a(this).show()}else{a(this).removeClass("active");a(this).removeAttr("style")}});a(".form-section .tab-content h2").each(function(b){a(this).show()})}});a(document).on("click",".ppof-settings .nav-items .nav-item",function(b){b.preventDefault();dataid=a(this).attr("dataid");a(".nav-items .nav-item").removeClass("active");a(this).addClass("active");a(".tab-content").removeClass("active");a(".tab-content-"+dataid).addClass("active")})});