Ticket #25460: 25460.1.diff
| File 25460.1.diff, 1.8 KB (added by , 12 years ago) |
|---|
-
src/wp-admin/js/post.js
575 575 if ($('#post-visibility-select').is(":hidden")) { 576 576 updateVisibility(); 577 577 $('#post-visibility-select').slideDown('fast'); 578 $( '#post-visibility-select input[type="radio"]' ).first().focus(); 578 579 $(this).hide(); 579 580 } 580 581 return false; … … 586 587 $('#post_password').val($('#hidden-post-password').val()); 587 588 $('#sticky').prop('checked', $('#hidden-post-sticky').prop('checked')); 588 589 $('#post-visibility-display').html(visibility); 589 $( '.edit-visibility', '#visibility').show();590 $( '.edit-visibility', '#visibility' ).show().focus(); 590 591 updateText(); 591 592 return false; 592 593 }); … … 632 633 $('#aa').val($('#hidden_aa').val()); 633 634 $('#hh').val($('#hidden_hh').val()); 634 635 $('#mn').val($('#hidden_mn').val()); 635 $('#timestampdiv').siblings('a.edit-timestamp').show() ;636 $('#timestampdiv').siblings('a.edit-timestamp').show().focus(); 636 637 updateText(); 637 638 return false; 638 639 }); … … 658 659 $('#post-status-select').siblings('a.edit-post-status').click(function() { 659 660 if ($('#post-status-select').is(":hidden")) { 660 661 $('#post-status-select').slideDown('fast'); 662 $( '#post-status-select select' ).focus(); 661 663 $(this).hide(); 662 664 } 663 665 return false; … … 673 675 $('.cancel-post-status', '#post-status-select').click(function() { 674 676 $('#post-status-select').slideUp('fast'); 675 677 $('#post_status').val($('#hidden_post_status').val()); 676 $( '#post-status-select').siblings('a.edit-post-status').show();678 $( '#post-status-select' ).siblings( 'a.edit-post-status' ).show().focus(); 677 679 updateText(); 678 680 return false; 679 681 });