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:
parent
228465854e
commit
6009504095
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user