From e6fe8c83a381334b57fb50ab84b1e6048d14ad0a Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 16 Oct 2012 21:38:35 +0000 Subject: [PATCH] Tab indexes: when tabbing out of the editors make sure the next focused element is the expected/default action, fix focusing the next field when picking a date for future post, props lessbloat, fixes #21340 git-svn-id: http://core.svn.wordpress.org/trunk@22250 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/dashboard.php | 8 ++++---- wp-admin/js/post.js | 1 + wp-includes/class-wp-editor.php | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 47aa196165..fb2ecb0005 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -527,16 +527,16 @@ function wp_dashboard_quick_press() {

+ + + + 'save-post' ) ); ?> - - - -

diff --git a/wp-admin/js/post.js b/wp-admin/js/post.js index 2de4d05995..96d50689a6 100644 --- a/wp-admin/js/post.js +++ b/wp-admin/js/post.js @@ -510,6 +510,7 @@ jQuery(document).ready( function($) { $('#timestampdiv').siblings('a.edit-timestamp').click(function() { if ($('#timestampdiv').is(":hidden")) { $('#timestampdiv').slideDown('fast'); + $('#mm').focus(); $(this).hide(); } return false; diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index 4b6cc21626..8a55b7a1a8 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -843,12 +843,12 @@ final class _WP_Editors {
- +