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
git-svn-id: https://develop.svn.wordpress.org/trunk@22250 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7c30ff0dcb
commit
2f8193421c
@ -527,16 +527,16 @@ function wp_dashboard_quick_press() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="submit">
|
<p class="submit">
|
||||||
|
<span id="publishing-action">
|
||||||
|
<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'); ?>" />
|
||||||
|
<span class="spinner"></span>
|
||||||
|
</span>
|
||||||
<input type="hidden" name="action" id="quickpost-action" value="post-quickpress-save" />
|
<input type="hidden" name="action" id="quickpost-action" value="post-quickpress-save" />
|
||||||
<input type="hidden" name="post_ID" value="<?php echo $post_ID; ?>" />
|
<input type="hidden" name="post_ID" value="<?php echo $post_ID; ?>" />
|
||||||
<input type="hidden" name="post_type" value="post" />
|
<input type="hidden" name="post_type" value="post" />
|
||||||
<?php wp_nonce_field('add-post'); ?>
|
<?php wp_nonce_field('add-post'); ?>
|
||||||
<?php submit_button( __( 'Save Draft' ), 'button', 'save', false, array( 'id' => 'save-post' ) ); ?>
|
<?php submit_button( __( 'Save Draft' ), 'button', 'save', false, array( 'id' => 'save-post' ) ); ?>
|
||||||
<input type="reset" value="<?php esc_attr_e( 'Reset' ); ?>" class="button" />
|
<input type="reset" value="<?php esc_attr_e( 'Reset' ); ?>" class="button" />
|
||||||
<span id="publishing-action">
|
|
||||||
<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'); ?>" />
|
|
||||||
<span class="spinner"></span>
|
|
||||||
</span>
|
|
||||||
<br class="clear" />
|
<br class="clear" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -510,6 +510,7 @@ jQuery(document).ready( function($) {
|
|||||||
$('#timestampdiv').siblings('a.edit-timestamp').click(function() {
|
$('#timestampdiv').siblings('a.edit-timestamp').click(function() {
|
||||||
if ($('#timestampdiv').is(":hidden")) {
|
if ($('#timestampdiv').is(":hidden")) {
|
||||||
$('#timestampdiv').slideDown('fast');
|
$('#timestampdiv').slideDown('fast');
|
||||||
|
$('#mm').focus();
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -843,12 +843,12 @@ final class _WP_Editors {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="submitbox">
|
<div class="submitbox">
|
||||||
<div id="wp-link-cancel">
|
|
||||||
<a class="submitdelete deletion" href="#"><?php _e( 'Cancel' ); ?></a>
|
|
||||||
</div>
|
|
||||||
<div id="wp-link-update">
|
<div id="wp-link-update">
|
||||||
<input type="submit" value="<?php esc_attr_e( 'Add Link' ); ?>" class="button-primary" id="wp-link-submit" name="wp-link-submit">
|
<input type="submit" value="<?php esc_attr_e( 'Add Link' ); ?>" class="button-primary" id="wp-link-submit" name="wp-link-submit">
|
||||||
</div>
|
</div>
|
||||||
|
<div id="wp-link-cancel">
|
||||||
|
<a class="submitdelete deletion" href="#"><?php _e( 'Cancel' ); ?></a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user