WordPress.org

Make WordPress Core

Changeset 22250


Ignore:
Timestamp:
10/16/2012 09:38:35 PM (7 years ago)
Author:
azaozz
Message:

Tab indexes: when tabbing out of the editors make sure the next focused element is the expected/default action, fix focusing the next field when picking a date for future post, props lessbloat, fixes #21340

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r22146 r22250  
    528528
    529529        <p class="submit">
     530            <span id="publishing-action">
     531                <input type="submit" name="publish" id="publish" accesskey="p" class="button-primary" value="<?php current_user_can('publish_posts') ? esc_attr_e('Publish') : esc_attr_e('Submit for Review'); ?>" />
     532                <span class="spinner"></span>
     533            </span>
    530534            <input type="hidden" name="action" id="quickpost-action" value="post-quickpress-save" />
    531535            <input type="hidden" name="post_ID" value="<?php echo $post_ID; ?>" />
     
    534538            <?php submit_button( __( 'Save Draft' ), 'button', 'save', false, array( 'id' => 'save-post' ) ); ?>
    535539            <input type="reset" value="<?php esc_attr_e( 'Reset' ); ?>" class="button" />
    536             <span id="publishing-action">
    537                 <input type="submit" name="publish" id="publish" accesskey="p" class="button-primary" value="<?php current_user_can('publish_posts') ? esc_attr_e('Publish') : esc_attr_e('Submit for Review'); ?>" />
    538                 <span class="spinner"></span>
    539             </span>
    540540            <br class="clear" />
    541541        </p>
  • trunk/wp-admin/js/post.js

    r22127 r22250  
    511511            if ($('#timestampdiv').is(":hidden")) {
    512512                $('#timestampdiv').slideDown('fast');
     513                $('#mm').focus();
    513514                $(this).hide();
    514515            }
  • trunk/wp-includes/class-wp-editor.php

    r22120 r22250  
    844844    </div>
    845845    <div class="submitbox">
     846        <div id="wp-link-update">
     847            <input type="submit" value="<?php esc_attr_e( 'Add Link' ); ?>" class="button-primary" id="wp-link-submit" name="wp-link-submit">
     848        </div>
    846849        <div id="wp-link-cancel">
    847850            <a class="submitdelete deletion" href="#"><?php _e( 'Cancel' ); ?></a>
    848         </div>
    849         <div id="wp-link-update">
    850             <input type="submit" value="<?php esc_attr_e( 'Add Link' ); ?>" class="button-primary" id="wp-link-submit" name="wp-link-submit">
    851851        </div>
    852852    </div>
Note: See TracChangeset for help on using the changeset viewer.