Publish box: focus first date field on edit

The order of the fields may change depending on the translation.

Props afercia.
Fixes #33059.


git-svn-id: https://develop.svn.wordpress.org/trunk@33349 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ella Iseulde Van Dorpe 2015-07-21 22:22:31 +00:00
parent 228465854e
commit 6009504095
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ jQuery(document).ready( function($) {
$timestampdiv.siblings('a.edit-timestamp').click( function( event ) {
if ( $timestampdiv.is( ':hidden' ) ) {
$timestampdiv.slideDown('fast');
$('#mm').focus();
$( 'input, select', $timestampdiv.find( '.timestamp-wrap' ) ).first().focus();
$(this).hide();
}
event.preventDefault();

View File

@ -650,7 +650,7 @@ jQuery(document).ready( function($) {
$timestampdiv.siblings('a.edit-timestamp').click( function( event ) {
if ( $timestampdiv.is( ':hidden' ) ) {
$timestampdiv.slideDown('fast');
$('#mm').focus();
$( 'input, select', $timestampdiv.find( '.timestamp-wrap' ) ).first().focus();
$(this).hide();
}
event.preventDefault();