WordPress/wp-admin/js/accordion.min.js
Bot (Assets) fc3522a1b7 Compress scripts/styles: 3.6-alpha-23857.
git-svn-id: http://core.svn.wordpress.org/trunk@23857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 08:58:41 +00:00

1 line
379 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.closest(".accordion-container").find(".accordion-section").not(b).removeClass("open");b.toggleClass("open")})});