mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-06 02:41:27 +01:00
480b83441f
git-svn-id: http://core.svn.wordpress.org/trunk@23435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 line
1.0 KiB
JavaScript
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()})}); |