WordPress/wp-admin/js/accordion.min.js
Bot (Assets) 480b83441f Compress scripts/styles: 3.6-alpha-23435.
git-svn-id: http://core.svn.wordpress.org/trunk@23435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-02-15 22:58:45 +00:00

1 line
1.0 KiB
JavaScript

jQuery(document).ready(function(a){a(".accordion-section-title").on("click keydown",function(c){if(c.type==="keydown"&&13!==c.which){return}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");c.preventDefault()})});jQuery(document).ready(function(a){a(".accordion-section-title").on("click keydown",function(c){if(c.type==="keydown"&&13!==c.which){return}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");c.preventDefault()})});jQuery(document).ready(function(a){a(".accordion-section-title").on("click keydown",function(c){if(c.type==="keydown"&&13!==c.which){return}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");c.preventDefault()})});