WordPress.org

Make WordPress Core

Ticket #14582: 14582.diff

File 14582.diff, 2.4 KB (added by wojtek.szkutnik, 8 years ago)
  • wp-admin/css/ie.dev.css

     
    422422        background: #298CBA;
    423423}
    424424
    425 #wpcontent #ajax-loading {
     425#wpcontent #ajax-loading,
     426#wpcontent #draft-ajax-loading{
    426427        vertical-align: baseline;
    427428}
    428429
  • wp-admin/css/wp-admin.dev.css

     
    18921892}
    18931893
    18941894#media-buttons img,
    1895 #submitpost #ajax-loading {
     1895#submitpost #ajax-loading,
     1896#submitpost #draft-ajax-loading {
    18961897        vertical-align: middle;
    18971898}
    18981899
     1900#submitpost #draft-ajax-loading {
     1901        display: block;
     1902        float: left;   
     1903        width: 16px;
     1904        height: 25px;
     1905        margin: 0 5px;
     1906        background: transparent url(../images/wpspin_light.gif) no-repeat scroll 0 50%;
     1907}
     1908
    18991909.submitbox .submit {
    19001910        text-align: left;
    19011911        padding: 12px 10px 10px;
  • wp-admin/includes/meta-boxes.php

     
    3232<?php } elseif ( 'pending' == $post->post_status && $can_publish ) { ?>
    3333<input type="submit" name="save" id="save-post" value="<?php esc_attr_e('Save as Pending'); ?>" tabindex="4" class="button button-highlighted" />
    3434<?php } ?>
     35<div id="draft-ajax-loading" style="visibility:hidden;"></div>
    3536</div>
    3637
    3738<div id="preview-action">
  • wp-includes/js/autosave.dev.js

     
    2121                        else
    2222                                t.addClass('button-disabled');
    2323                });
    24                 $('#ajax-loading').css('visibility', 'visible');
     24                if ( $(this).attr('id') == 'save-post' )
     25                        $('#draft-ajax-loading').css('visibility', 'visible');
     26                else
     27                        $('#ajax-loading').css('visibility', 'visible');
    2528        });
    2629
    2730        window.onbeforeunload = function(){
     
    173176        // delay that a bit to avoid some rare collisions while the DOM is being updated.
    174177        setTimeout(function(){
    175178                jQuery(':button, :submit', '#submitpost').removeAttr('disabled');
    176                 jQuery('#ajax-loading').css('visibility', 'hidden');
     179                jQuery('#ajax-loading, #draft-ajax-loading').css('visibility', 'hidden');
    177180        }, 500);
    178181}
    179182