mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-26 19:18:57 +01:00
6050f55678
git-svn-id: http://core.svn.wordpress.org/trunk@24645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 line
477 B
JavaScript
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")})}); |