WordPress/wp-admin/js/accordion.min.js

1 line
1.0 KiB
JavaScript

jQuery(document).ready(function(a){a(".accordion-section-title").on("click keydown",function(c){if(c.type==="keydown"&&13!==c.which){return}var b=a(this).closest(".accordion-section");if(b.hasClass("cannot-expand")){return}b.closest(".accordion-container").find(".accordion-section").not(b).removeClass("open");b.toggleClass("open");c.preventDefault()})});jQuery(document).ready(function(a){a(".accordion-section-title").on("click keydown",function(c){if(c.type==="keydown"&&13!==c.which){return}var b=a(this).closest(".accordion-section");if(b.hasClass("cannot-expand")){return}b.closest(".accordion-container").find(".accordion-section").not(b).removeClass("open");b.toggleClass("open");c.preventDefault()})});jQuery(document).ready(function(a){a(".accordion-section-title").on("click keydown",function(c){if(c.type==="keydown"&&13!==c.which){return}var b=a(this).closest(".accordion-section");if(b.hasClass("cannot-expand")){return}b.closest(".accordion-container").find(".accordion-section").not(b).removeClass("open");b.toggleClass("open");c.preventDefault()})});