Make WordPress Core

Changeset 19229


Ignore:
Timestamp:
11/09/2011 04:46:05 PM (13 years ago)
Author:
duck_
Message:

Stop multiple loading spinners showing when repeatedly accessing Press This Add Photos box. Fixes #18992.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/press-this.php

    r19054 r19229  
    371371                    jQuery('#extra-fields').show();
    372372                }
    373                 jQuery('#extra-fields').before('<div id="waiting"><img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> <?php echo esc_js( __( 'Loading...' ) ); ?></div>');
    374 
     373
     374                jQuery('#waiting').show();
    375375                if(photostorage == false) {
    376376                    jQuery.ajax({
     
    563563        </div>
    564564
     565        <div id="waiting" style="display: none"><img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> <?php esc_html_e( 'Loading...' ); ?></div>
     566
    565567        <div id="extra-fields" style="display: none"></div>
    566568
Note: See TracChangeset for help on using the changeset viewer.