When tabbing: on Enter open the current submenu and close other submenus if open, see #19394

git-svn-id: http://svn.automattic.com/wordpress/trunk@19505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz
2011-12-01 00:43:18 +00:00
parent cc50764a8b
commit 6e11173bd4
5 changed files with 8 additions and 6 deletions

View File

@@ -229,6 +229,7 @@ $(document).ready( function() {
e.stopPropagation();
e.preventDefault();
menu.find('.wp-submenu').removeClass('sub-open');
target.siblings('.wp-submenu').toggleClass('sub-open').find('a[role="menuitem"]').each(refresh);
}).each(refresh);

File diff suppressed because one or more lines are too long