WordPress/wp-admin/js/accordion.min.js
Bot (Assets) 6050f55678 Compress scripts/styles: 3.6-beta4-24645.
git-svn-id: http://core.svn.wordpress.org/trunk@24645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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")})});