792fd2aab9
git-svn-id: https://develop.svn.wordpress.org/trunk@24645 602fd350-edb4-49c9-b593-d223f7449a82
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")})}); |