Stop multiple loading spinners showing when repeatedly accessing Press This Add Photos box. Fixes #18992.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19229 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4fa61390ef
commit
a57f6b0271
|
@ -370,8 +370,8 @@ var photostorage = false;
|
|||
jQuery('#waiting').hide();
|
||||
jQuery('#extra-fields').show();
|
||||
}
|
||||
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>');
|
||||
|
||||
jQuery('#waiting').show();
|
||||
if(photostorage == false) {
|
||||
jQuery.ajax({
|
||||
type: "GET",
|
||||
|
@ -562,6 +562,8 @@ var photostorage = false;
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
|
||||
<div id="extra-fields" style="display: none"></div>
|
||||
|
||||
<div class="postdivrich">
|
||||
|
|
Loading…
Reference in New Issue