Changeset 33352
- Timestamp:
- 07/21/2015 10:45:48 PM (9 years ago)
- Location:
- trunk/src/wp-admin/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/comment.js
r33349 r33352 9 9 $timestampdiv.siblings('a.edit-timestamp').click( function( event ) { 10 10 if ( $timestampdiv.is( ':hidden' ) ) { 11 $timestampdiv.slideDown('fast'); 12 $( 'input, select', $timestampdiv.find( '.timestamp-wrap' ) ).first().focus(); 11 $timestampdiv.slideDown( 'fast', function() { 12 $( 'input, select', $timestampdiv.find( '.timestamp-wrap' ) ).first().focus(); 13 } ); 13 14 $(this).hide(); 14 15 } -
trunk/src/wp-admin/js/post.js
r33349 r33352 608 608 if ( $postVisibilitySelect.is(':hidden') ) { 609 609 updateVisibility(); 610 $postVisibilitySelect.slideDown('fast').find('input[type="radio"]').first().focus(); 610 $postVisibilitySelect.slideDown( 'fast', function() { 611 $postVisibilitySelect.find( 'input[type="radio"]' ).first().focus(); 612 } ); 611 613 $(this).hide(); 612 614 } … … 627 629 $postVisibilitySelect.find('.save-post-visibility').click( function( event ) { // crazyhorse - multiple ok cancels 628 630 $postVisibilitySelect.slideUp('fast'); 629 $('#visibility .edit-visibility').show() ;631 $('#visibility .edit-visibility').show().focus(); 630 632 updateText(); 631 633 … … 650 652 $timestampdiv.siblings('a.edit-timestamp').click( function( event ) { 651 653 if ( $timestampdiv.is( ':hidden' ) ) { 652 $timestampdiv.slideDown('fast'); 653 $( 'input, select', $timestampdiv.find( '.timestamp-wrap' ) ).first().focus(); 654 $timestampdiv.slideDown( 'fast', function() { 655 $( 'input, select', $timestampdiv.find( '.timestamp-wrap' ) ).first().focus(); 656 } ); 654 657 $(this).hide(); 655 658 } … … 671 674 if ( updateText() ) { 672 675 $timestampdiv.slideUp('fast'); 673 $timestampdiv.siblings('a.edit-timestamp').show() ;676 $timestampdiv.siblings('a.edit-timestamp').show().focus(); 674 677 } 675 678 event.preventDefault(); … … 691 694 $postStatusSelect.siblings('a.edit-post-status').click( function( event ) { 692 695 if ( $postStatusSelect.is( ':hidden' ) ) { 693 $postStatusSelect.slideDown('fast').find('select').focus(); 696 $postStatusSelect.slideDown( 'fast', function() { 697 $postStatusSelect.find('select').focus(); 698 } ); 694 699 $(this).hide(); 695 700 } … … 698 703 699 704 $postStatusSelect.find('.save-post-status').click( function( event ) { 700 $postStatusSelect.slideUp( 'fast').siblings('a.edit-post-status').show();705 $postStatusSelect.slideUp( 'fast' ).siblings( 'a.edit-post-status' ).show().focus(); 701 706 updateText(); 702 707 event.preventDefault(); … … 704 709 705 710 $postStatusSelect.find('.cancel-post-status').click( function( event ) { 706 $ ('#post-status-select').slideUp('fast').siblings( 'a.edit-post-status' ).show().focus();711 $postStatusSelect.slideUp( 'fast' ).siblings( 'a.edit-post-status' ).show().focus(); 707 712 $('#post_status').val( $('#hidden_post_status').val() ); 708 713 updateText();
Note: See TracChangeset
for help on using the changeset viewer.