Make WordPress Core

Ticket #33059: 33059.2.patch

File 33059.2.patch, 587 bytes (added by iseulde, 10 years ago)
  • src/wp-admin/js/post.js

     
    649649
    650650                $timestampdiv.siblings('a.edit-timestamp').click( function( event ) {
    651651                        if ( $timestampdiv.is( ':hidden' ) ) {
    652                                 $timestampdiv.slideDown('fast');
    653                                 $('#mm').focus();
     652                                $timestampdiv.slideDown( 'fast', function() {
     653                                        $( 'input, select', $timestampdiv.find( '.timestamp-wrap' ) ).first().focus();
     654                                } );
    654655                                $(this).hide();
    655656                        }
    656657                        event.preventDefault();