mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-25 02:27:50 +01:00
427fc928b1
git-svn-id: http://core.svn.wordpress.org/trunk@23860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 line
331 B
JavaScript
1 line
331 B
JavaScript
jQuery(document).ready(function(a){a(".accordion-container").on("click keydown",".accordion-section-title",function(c){if(c.type==="keydown"&&13!==c.which){return}c.preventDefault();var b=a(this).closest(".accordion-section");if(b.hasClass("cannot-expand")){return}b.siblings(".open").removeClass("open");b.toggleClass("open")})}); |