Wordpress/wp-admin/js/accordion.min.js
2013-07-10 16:58:55 +00:00

1 line
477 B
JavaScript

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