Ticket #21456: 21456.6.diff
File 21456.6.diff, 42.8 KB (added by , 12 years ago) |
---|
-
wp-includes/js/wplink.js
303 303 return; 304 304 305 305 wpLink.lastSearch = search; 306 waiting = t.parent().find(' img.waiting').show();306 waiting = t.parent().find('.spinner').show(); 307 307 308 308 rivers.search.change( search ); 309 309 rivers.search.ajax( function(){ waiting.hide(); }); -
wp-includes/js/autosave.js
22 22 t.addClass('button-disabled'); 23 23 }); 24 24 if ( $(this).attr('id') == 'publish' ) 25 $('# ajax-loading').css('visibility', 'visible');25 $('#major-publishing-actions .spinner').show(); 26 26 else 27 $('# draft-ajax-loading').css('visibility', 'visible');27 $('#minor-publishing .spinner').show(); 28 28 }); 29 29 30 30 window.onbeforeunload = function(){ … … 230 230 // delay that a bit to avoid some rare collisions while the DOM is being updated. 231 231 setTimeout(function(){ 232 232 jQuery(':button, :submit', '#submitpost').removeAttr('disabled'); 233 jQuery('. ajax-loading').css('visibility', 'hidden');233 jQuery('.spinner').hide(); 234 234 }, 500); 235 235 } 236 236 -
wp-includes/css/editor.css
1296 1296 margin-top: 5px; 1297 1297 } 1298 1298 1299 #wp-link label span {1299 #wp-link label span.search-label { 1300 1300 display: inline-block; 1301 1301 width: 80px; 1302 1302 text-align: right; 1303 1303 padding-right: 5px; 1304 1304 } 1305 1305 1306 #wp-link .link-search-field { 1307 float: left; 1308 margin-right: 5px; 1309 } 1310 1306 1311 #wp-link .link-search-wrapper { 1307 1312 margin: 5px 6px 9px; 1308 1313 display: block; … … 1319 1324 width: 220px; 1320 1325 } 1321 1326 1322 #wp-link .link-search-wrapper img.waiting{1323 margin: 0;1327 #wp-link .link-search-wrapper .spinner { 1328 margin: 4px 2px 0 0; 1324 1329 display: none; 1325 1330 vertical-align: text-bottom; 1326 1331 } … … 1405 1410 padding: 10px 0; 1406 1411 } 1407 1412 1408 #wp-link .river-waiting img.waiting{1413 #wp-link .river-waiting .spinner { 1409 1414 margin: 0 auto; 1410 1415 display: block; 1411 1416 } -
wp-includes/class-wp-editor.php
707 707 </div></div> 708 708 709 709 <div id="wp-fullscreen-save"> 710 < span><?php if ( $post->post_status == 'publish' ) _e('Updated.'); else _e('Saved.'); ?></span>711 < img src="<?php echo admin_url('images/wpspin_light.gif'); ?>" alt="" />712 < input type="button" class="button-primary" value="<?php echo $save; ?>" onclick="fullscreen.save();" />710 <input type="button" class="button-primary right" value="<?php echo $save; ?>" onclick="fullscreen.save();" /> 711 <span class="spinner"></span> 712 <span class="fs-saved"><?php if ( $post->post_status == 'publish' ) _e('Updated.'); else _e('Saved.'); ?></span> 713 713 </div> 714 714 715 715 </div> … … 822 822 <div id="search-panel"<?php if ( ! $show_internal ) echo ' style="display:none"'; ?>> 823 823 <div class="link-search-wrapper"> 824 824 <label> 825 <span ><?php _e( 'Search' ); ?></span>825 <span class="search-label"><?php _e( 'Search' ); ?></span> 826 826 <input type="search" id="search-field" class="link-search-field" autocomplete="off" /> 827 < img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />827 <span class="spinner"></span> 828 828 </label> 829 829 </div> 830 830 <div id="search-results" class="query-results"> 831 831 <ul></ul> 832 832 <div class="river-waiting"> 833 < img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />833 <span class="spinner"></span> 834 834 </div> 835 835 </div> 836 836 <div id="most-recent-results" class="query-results"> 837 837 <div class="query-notice"><em><?php _e( 'No search term specified. Showing recent items.' ); ?></em></div> 838 838 <ul></ul> 839 839 <div class="river-waiting"> 840 < img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />840 <span class="spinner"></span> 841 841 </div> 842 842 </div> 843 843 </div> -
wp-admin/includes/class-wp-posts-list-table.php
1041 1041 $update_text = __( 'Update' ); 1042 1042 ?> 1043 1043 <a accesskey="s" href="#inline-edit" title="<?php esc_attr_e( 'Update' ); ?>" class="button-primary save alignright"><?php echo esc_attr( $update_text ); ?></a> 1044 < img class="waiting" style="display:none;" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />1044 <span class="spinner"></span> 1045 1045 <?php } else { 1046 1046 submit_button( __( 'Update' ), 'button-primary alignright', 'bulk_edit', false, array( 'accesskey' => 's' ) ); 1047 1047 } ?> -
wp-admin/includes/class-wp-terms-list-table.php
364 364 <a accesskey="c" href="#inline-edit" title="<?php esc_attr_e( 'Cancel' ); ?>" class="cancel button-secondary alignleft"><?php _e( 'Cancel' ); ?></a> 365 365 <?php $update_text = $tax->labels->update_item; ?> 366 366 <a accesskey="s" href="#inline-edit" title="<?php echo esc_attr( $update_text ); ?>" class="save button-primary alignright"><?php echo $update_text; ?></a> 367 < img class="waiting" style="display:none;" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />367 <span class="spinner"></span> 368 368 <span class="error" style="display:none;"></span> 369 369 <?php wp_nonce_field( 'taxinlineeditnonce', '_inline_edit', false ); ?> 370 370 <input type="hidden" name="taxonomy" value="<?php echo esc_attr( $this->screen->taxonomy ); ?>" /> -
wp-admin/includes/class-wp-plugin-install-list-table.php
115 115 <?php do_action( 'install_plugins_table_header' ); ?> 116 116 </div> 117 117 <?php $this->pagination( $which ); ?> 118 <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading list-ajax-loading" alt="" />119 118 <br class="clear" /> 120 119 </div> 121 120 <?php } else { ?> 122 121 <div class="tablenav bottom"> 123 122 <?php $this->pagination( $which ); ?> 124 <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading list-ajax-loading" alt="" />125 123 <br class="clear" /> 126 124 </div> 127 125 <?php -
wp-admin/includes/dashboard.php
535 535 <input type="reset" value="<?php esc_attr_e( 'Reset' ); ?>" class="button" /> 536 536 <span id="publishing-action"> 537 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 < img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />538 <span class="spinner"></span> 539 539 </span> 540 540 <br class="clear" /> 541 541 </p> -
wp-admin/includes/class-wp-theme-install-list-table.php
134 134 <?php do_action( 'install_themes_table_header' ); ?> 135 135 </div> 136 136 <?php $this->pagination( 'top' ); ?> 137 <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading list-ajax-loading" alt="" />138 137 <br class="clear" /> 139 138 </div> 140 139 -
wp-admin/includes/class-wp-upgrader.php
1288 1288 1289 1289 function before($title = '') { 1290 1290 $this->in_loop = true; 1291 printf( '<h4>' . $this->upgrader->strings['skin_before_update_header'] . ' < img alt="" src="' . admin_url( 'images/wpspin_light.gif' ) . '" class="hidden waiting-' . $this->upgrader->update_current . '" style="vertical-align:middle;" /></h4>', $title, $this->upgrader->update_current, $this->upgrader->update_count);1292 echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\'). show();</script>';1291 printf( '<h4>' . $this->upgrader->strings['skin_before_update_header'] . ' <span class="spinner waiting-' . $this->upgrader->update_current . '"></span></h4>', $title, $this->upgrader->update_current, $this->upgrader->update_count); 1292 echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').css("display", "inline-block");</script>'; 1293 1293 echo '<div class="update-messages hide-if-js" id="progress-' . esc_attr($this->upgrader->update_current) . '"><p>'; 1294 1294 $this->flush_output(); 1295 1295 } -
wp-admin/includes/meta-boxes.php
32 32 <?php } elseif ( 'pending' == $post->post_status && $can_publish ) { ?> 33 33 <input type="submit" name="save" id="save-post" value="<?php esc_attr_e('Save as Pending'); ?>" class="button" /> 34 34 <?php } ?> 35 < img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading" id="draft-ajax-loading" alt="" />35 <span class="spinner"></span> 36 36 </div> 37 37 <?php if ( $post_type_object->public ) : ?> 38 38 <div id="preview-action"> … … 200 200 </div> 201 201 202 202 <div id="publishing-action"> 203 < img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading" id="ajax-loading" alt="" />203 <span class="spinner"></span> 204 204 <?php 205 205 if ( !in_array( $post->post_status, array('publish', 'future', 'private') ) || 0 == $post->ID ) { 206 206 if ( $can_publish ) : … … 283 283 </div> 284 284 285 285 <div id="publishing-action"> 286 < img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading" id="ajax-loading" alt="" />286 <span class="spinner"></span> 287 287 <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Update') ?>" /> 288 288 <input name="save" type="submit" class="button-primary button-large" id="publish" accesskey="p" value="<?php esc_attr_e('Update') ?>" /> 289 289 </div> … … 589 589 } 590 590 591 591 ?> 592 <p class="hide-if-no-js" id="show-comments"><a href="#commentstatusdiv" onclick="commentsBox.get(<?php echo $total; ?>);return false;"><?php _e('Show comments'); ?></a> < img class="waiting" style="display:none;" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /></p>592 <p class="hide-if-no-js" id="show-comments"><a href="#commentstatusdiv" onclick="commentsBox.get(<?php echo $total; ?>);return false;"><?php _e('Show comments'); ?></a> <span class="spinner"></span></p> 593 593 <?php 594 594 } 595 595 -
wp-admin/includes/widgets.php
211 211 <a class="widget-control-close" href="#close"><?php _e('Close'); ?></a> 212 212 </div> 213 213 <div class="alignright<?php if ( 'noform' === $has_form ) echo ' widget-control-noform'; ?>"> 214 <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-feedback" title="" alt="" />215 <?php submit_button( __( 'Save' ), 'button button-primary widget-control-save', 'savewidget', false, array( 'id' => 'widget-' . esc_attr( $id_format ) . '-savewidget' ) ); ?>214 <?php submit_button( __( 'Save' ), 'button-primary widget-control-save right', 'savewidget', false, array( 'id' => 'widget-' . esc_attr( $id_format ) . '-savewidget' ) ); ?> 215 <span class="spinner"></span> 216 216 </div> 217 217 <br class="clear" /> 218 218 </div> -
wp-admin/includes/class-wp-themes-list-table.php
91 91 ?> 92 92 <div class="tablenav themes <?php echo $which; ?>"> 93 93 <?php $this->pagination( $which ); ?> 94 <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading list-ajax-loading" alt="" />95 94 <span class="ajax-loading list-ajax-loading spinner"></span> 95 <br class="clear" /> 96 96 </div> 97 97 <?php 98 98 } -
wp-admin/includes/template.php
360 360 <span id="savebtn" style="display:none;"><?php _e('Update Comment'); ?></span> 361 361 <span id="replybtn" style="display:none;"><?php _e('Submit Reply'); ?></span></a> 362 362 <a href="#comments-form" class="cancel button-secondary alignleft"><?php _e('Cancel'); ?></a> 363 < img class="waiting" style="display:none;" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />363 <span class="waiting spinner"></span> 364 364 <span class="error" style="display:none;"></span> 365 365 <br class="clear" /> 366 366 </p> -
wp-admin/includes/media.php
1112 1112 $image_edit_button = ''; 1113 1113 if ( gd_edit_image_support( $post->post_mime_type ) ) { 1114 1114 $nonce = wp_create_nonce( "image_editor-$post->ID" ); 1115 $image_edit_button = "<input type='button' id='imgedit-open-btn-$post->ID' onclick='imageEdit.open( $post->ID, \"$nonce\" )' class='button' value='" . esc_attr__( 'Edit Image' ) . "' /> < img src='" . esc_url( admin_url( 'images/wpspin_light.gif' ) ) . "' class='imgedit-wait-spin' alt='' />";1115 $image_edit_button = "<input type='button' id='imgedit-open-btn-$post->ID' onclick='imageEdit.open( $post->ID, \"$nonce\" )' class='button' value='" . esc_attr__( 'Edit Image' ) . "' /> <span class='spinner'></span>"; 1116 1116 } 1117 1117 1118 1118 $attachment_url = get_permalink( $attachment_id ); … … 1580 1580 return false; 1581 1581 } 1582 1582 1583 document.getElementById('status_img').innerHTML = '<img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />';1583 document.getElementById('status_img').innerHTML = '<img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" width="16" />'; 1584 1584 t.preloadImg = new Image(); 1585 1585 t.preloadImg.onload = t.updateImageData; 1586 1586 t.preloadImg.onerror = t.resetImageData; … … 2126 2126 $image_edit_button = ''; 2127 2127 if ( gd_edit_image_support( $post->post_mime_type ) ) { 2128 2128 $nonce = wp_create_nonce( "image_editor-$post->ID" ); 2129 $image_edit_button = "<input type='button' id='imgedit-open-btn-$post->ID' onclick='imageEdit.open( $post->ID, \"$nonce\" )' class='button' value='" . esc_attr__( 'Edit Image' ) . "' /> < img src='" . esc_url( admin_url( 'images/wpspin_light.gif' ) ) . "' class='imgedit-wait-spin' alt='' />";2129 $image_edit_button = "<input type='button' id='imgedit-open-btn-$post->ID' onclick='imageEdit.open( $post->ID, \"$nonce\" )' class='button' value='" . esc_attr__( 'Edit Image' ) . "' /> <span class='spinner'></span>"; 2130 2130 } 2131 2131 2132 2132 ?> -
wp-admin/includes/nav-menu.php
511 511 } 512 512 ?> 513 513 <p class="button-controls"> 514 < img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />515 < ?php submit_button( __( 'Save' ), 'primary', 'nav-menu-locations', false, disabled( $nav_menu_selected_id, 0, false ) ); ?>514 <?php submit_button( __( 'Save' ), 'primary right', 'nav-menu-locations', false, disabled( $nav_menu_selected_id, 0, false ) ); ?> 515 <span class="spinner"></span> 516 516 </p> 517 517 <?php 518 518 } … … 560 560 561 561 <p class="button-controls"> 562 562 <span class="add-to-menu"> 563 <i mg class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />564 < input type="submit"<?php disabled( $nav_menu_selected_id, 0 ); ?> class="button-secondary submit-add-to-menu" value="<?php esc_attr_e('Add to Menu'); ?>" name="add-custom-menu-item" id="submit-customlinkdiv" />563 <input type="submit"<?php disabled( $nav_menu_selected_id, 0 ); ?> class="button-secondary submit-add-to-menu right" value="<?php esc_attr_e('Add to Menu'); ?>" name="add-custom-menu-item" id="submit-customlinkdiv" /> 564 <span class="spinner"></span> 565 565 </span> 566 566 </p> 567 567 … … 692 692 ?> 693 693 <p class="quick-search-wrap"> 694 694 <input type="search" class="quick-search input-with-default-title" title="<?php esc_attr_e('Search'); ?>" value="<?php echo $searched; ?>" name="quick-search-posttype-<?php echo $post_type_name; ?>" /> 695 < img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />695 <span class="spinner"></span> 696 696 <?php submit_button( __( 'Search' ), 'button-small quick-search-submit button-secondary hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-posttype-' . $post_type_name ) ); ?> 697 697 </p> 698 698 … … 779 779 </span> 780 780 781 781 <span class="add-to-menu"> 782 <i mg class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />783 < input type="submit"<?php disabled( $nav_menu_selected_id, 0 ); ?> class="button-secondary submit-add-to-menu" value="<?php esc_attr_e('Add to Menu'); ?>" name="add-post-type-menu-item" id="submit-posttype-<?php echo $post_type_name; ?>" />782 <input type="submit"<?php disabled( $nav_menu_selected_id, 0 ); ?> class="button-secondary submit-add-to-menu right" value="<?php esc_attr_e('Add to Menu'); ?>" name="add-post-type-menu-item" id="submit-posttype-<?php echo $post_type_name; ?>" /> 783 <span class="spinner"></span> 784 784 </span> 785 785 </p> 786 786 … … 923 923 ?> 924 924 <p class="quick-search-wrap"> 925 925 <input type="search" class="quick-search input-with-default-title" title="<?php esc_attr_e('Search'); ?>" value="<?php echo $searched; ?>" name="quick-search-taxonomy-<?php echo $taxonomy_name; ?>" /> 926 < img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />926 <span class="spinner"></span> 927 927 <?php submit_button( __( 'Search' ), 'button-small quick-search-submit button-secondary hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-taxonomy-' . $taxonomy_name ) ); ?> 928 928 </p> 929 929 … … 955 955 </span> 956 956 957 957 <span class="add-to-menu"> 958 <i mg class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />959 < input type="submit"<?php disabled( $nav_menu_selected_id, 0 ); ?> class="button-secondary submit-add-to-menu" value="<?php esc_attr_e('Add to Menu'); ?>" name="add-taxonomy-menu-item" id="submit-taxonomy-<?php echo $taxonomy_name; ?>" />958 <input type="submit"<?php disabled( $nav_menu_selected_id, 0 ); ?> class="button-secondary submit-add-to-menu right" value="<?php esc_attr_e('Add to Menu'); ?>" name="add-taxonomy-menu-item" id="submit-taxonomy-<?php echo $taxonomy_name; ?>" /> 959 <span class="spinner"></span> 960 960 </span> 961 961 </p> 962 962 -
wp-admin/customize.php
72 72 $save_text = $wp_customize->is_theme_active() ? __( 'Save & Publish' ) : __( 'Save & Activate' ); 73 73 submit_button( $save_text, 'primary', 'save', false ); 74 74 ?> 75 < img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" />75 <span class="spinner"></span> 76 76 <a class="back button" href="<?php echo esc_url( $return ? $return : admin_url( 'themes.php' ) ); ?>"> 77 77 <?php _e( 'Cancel' ); ?> 78 78 </a> -
wp-admin/js/edit-comments.js
368 368 $('#replycontent').css('height', '').val(''); 369 369 $('#edithead input').val(''); 370 370 $('.error', replyrow).html('').hide(); 371 $('. waiting', replyrow).hide();371 $('.spinner', replyrow).hide(); 372 372 373 373 this.cid = ''; 374 374 }, … … 451 451 var post = {}; 452 452 453 453 $('#replysubmit .error').hide(); 454 $('#replysubmit . waiting').show();454 $('#replysubmit .spinner').show(); 455 455 456 456 $('#replyrow input').not(':button').each(function() { 457 457 var t = $(this); … … 533 533 error : function(r) { 534 534 var er = r.statusText; 535 535 536 $('#replysubmit . waiting').hide();536 $('#replysubmit .spinner').hide(); 537 537 538 538 if ( r.responseText ) 539 539 er = r.responseText.replace( /<.[^<>]*?>/g, '' ); -
wp-admin/js/inline-edit-tax.js
60 60 if( typeof(id) == 'object' ) 61 61 id = this.getId(id); 62 62 63 $('table.widefat . inline-edit-save .waiting').show();63 $('table.widefat .spinner').show(); 64 64 65 65 params = { 66 66 action: 'inline-save-tax', … … 76 76 $.post( ajaxurl, params, 77 77 function(r) { 78 78 var row, new_id; 79 $('table.widefat . inline-edit-save .waiting').hide();79 $('table.widefat .spinner').hide(); 80 80 81 81 if (r) { 82 82 if ( -1 != r.indexOf('<tr') ) { … … 99 99 var id = $('table.widefat tr.inline-editor').attr('id'); 100 100 101 101 if ( id ) { 102 $('table.widefat . inline-edit-save .waiting').hide();102 $('table.widefat .spinner').hide(); 103 103 $('#'+id).remove(); 104 104 id = id.substr( id.lastIndexOf('-') + 1 ); 105 105 $(this.what+id).show(); -
wp-admin/js/widgets.js
176 176 177 177 saveOrder : function(sb) { 178 178 if ( sb ) 179 $('#' + sb).closest('div.widgets-holder-wrap').find(' img.ajax-feedback').css('visibility', 'visible');179 $('#' + sb).closest('div.widgets-holder-wrap').find('.spinner').css('display', 'inline-block'); 180 180 181 181 var a = { 182 182 action: 'widgets-order', … … 190 190 }); 191 191 192 192 $.post( ajaxurl, a, function() { 193 $(' img.ajax-feedback').css('visibility', 'hidden');193 $('.spinner').hide(); 194 194 }); 195 195 196 196 this.resize(); … … 199 199 save : function(widget, del, animate, order) { 200 200 var sb = widget.closest('div.widgets-sortables').attr('id'), data = widget.find('form').serialize(), a; 201 201 widget = $(widget); 202 $('. ajax-feedback', widget).css('visibility', 'visible');202 $('.spinner', widget).show(); 203 203 204 204 a = { 205 205 action: 'save-widget', … … 235 235 wpWidgets.resize(); 236 236 } 237 237 } else { 238 $('. ajax-feedback').css('visibility', 'hidden');238 $('.spinner').hide(); 239 239 if ( r && r.length > 2 ) { 240 240 $('div.widget-content', widget).html(r); 241 241 wpWidgets.appendTitle(widget); -
wp-admin/js/nav-menu.js
130 130 return false; 131 131 132 132 // Show the ajax spinner 133 t.find(' img.waiting').show();133 t.find('.spinner').show(); 134 134 135 135 // Retrieve menu item data 136 136 $(checkboxes).each(function(){ … … 146 146 api.addItemToMenu(menuItems, processMethod, function(){ 147 147 // Deselect the items and hide the ajax spinner 148 148 checkboxes.removeAttr('checked'); 149 t.find(' img.waiting').hide();149 t.find('.spinner').hide(); 150 150 }); 151 151 }); 152 152 }, … … 471 471 loc.find('select').each(function() { 472 472 params[this.name] = $(this).val(); 473 473 }); 474 loc.find('. waiting').show();474 loc.find('.spinner').show(); 475 475 $.post( ajaxurl, params, function(r) { 476 loc.find('. waiting').hide();476 loc.find('.spinner').hide(); 477 477 }); 478 478 return false; 479 479 }); … … 515 515 'type': input.attr('name') 516 516 }; 517 517 518 $(' img.waiting', panel).show();518 $('.spinner', panel).show(); 519 519 520 520 $.post( ajaxurl, params, function(menuMarkup) { 521 521 api.processQuickSearchQueryResponse(menuMarkup, params, panel); … … 532 532 return false; 533 533 534 534 // Show the ajax spinner 535 $('.customlinkdiv img.waiting').show();535 $('.customlinkdiv .spinner').show(); 536 536 this.addLinkToMenu( url, label, processMethod, function() { 537 537 // Remove the ajax spinner 538 $('.customlinkdiv img.waiting').hide();538 $('.customlinkdiv .spinner').hide(); 539 539 // Set custom link form back to defaults 540 540 $('#custom-menu-item-name').val('').blur(); 541 541 $('#custom-menu-item-url').val('http://'); … … 905 905 906 906 if( ! $items.length ) { 907 907 $('.categorychecklist', panel).html( '<li><p>' + navMenuL10n.noResultsFound + '</p></li>' ); 908 $(' img.waiting', panel).hide();908 $('.spinner', panel).hide(); 909 909 return; 910 910 } 911 911 … … 932 932 }); 933 933 934 934 $('.categorychecklist', panel).html( $items ); 935 $(' img.waiting', panel).hide();935 $('.spinner', panel).hide(); 936 936 }, 937 937 938 938 removeMenuItem : function(el) { -
wp-admin/js/wp-fullscreen.js
205 205 */ 206 206 207 207 api.save = function() { 208 var hidden = $('#hiddenaction'), old = hidden.val(), spinner = $('#wp-fullscreen-save img'),208 var hidden = $('#hiddenaction'), old = hidden.val(), spinner = $('#wp-fullscreen-save .spinner'), 209 209 message = $('#wp-fullscreen-save span'); 210 210 211 211 spinner.show(); -
wp-admin/js/dashboard.js
66 66 quickPressLoad = function() { 67 67 var act = $('#quickpost-action'), t; 68 68 t = $('#quick-press').submit( function() { 69 $('#dashboard_quick_press #publishing-action img.waiting').css('visibility', 'visible');69 $('#dashboard_quick_press #publishing-action .spinner').show(); 70 70 $('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop('disabled', true); 71 71 72 72 if ( 'post' == act.val() ) { … … 74 74 } 75 75 76 76 $('#dashboard_quick_press div.inside').load( t.attr( 'action' ), t.serializeArray(), function() { 77 $('#dashboard_quick_press #publishing-action img.waiting').css('visibility', 'hidden');77 $('#dashboard_quick_press #publishing-action .spinner').hide(); 78 78 $('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop('disabled', false); 79 79 $('#dashboard_quick_press ul').next('p').remove(); 80 80 $('#dashboard_quick_press ul').find('li').each( function() { -
wp-admin/js/image-edit.js
272 272 273 273 open : function(postid, nonce) { 274 274 var data, elem = $('#image-editor-' + postid), head = $('#media-head-' + postid), 275 btn = $('#imgedit-open-btn-' + postid), spin = btn.siblings(' img');275 btn = $('#imgedit-open-btn-' + postid), spin = btn.siblings('.spinner'); 276 276 277 277 btn.prop('disabled', true); 278 spin. css('visibility', 'visible');278 spin.show(); 279 279 280 280 data = { 281 281 'action': 'image-editor', … … 288 288 elem.fadeIn('fast'); 289 289 head.fadeOut('fast', function(){ 290 290 btn.removeAttr('disabled'); 291 spin. css('visibility', 'hidden');291 spin.hide(); 292 292 }); 293 293 }); 294 294 }, -
wp-admin/js/inline-edit-post.js
237 237 if ( typeof(id) == 'object' ) 238 238 id = this.getId(id); 239 239 240 $('table.widefat . inline-edit-save .waiting').show();240 $('table.widefat .spinner').show(); 241 241 242 242 params = { 243 243 action: 'inline-save', … … 253 253 // make ajax request 254 254 $.post( ajaxurl, params, 255 255 function(r) { 256 $('table.widefat . inline-edit-save .waiting').hide();256 $('table.widefat .spinner').hide(); 257 257 258 258 if (r) { 259 259 if ( -1 != r.indexOf('<tr') ) { … … 276 276 var id = $('table.widefat tr.inline-editor').attr('id'); 277 277 278 278 if ( id ) { 279 $('table.widefat . inline-edit-save .waiting').hide();279 $('table.widefat .spinner').hide(); 280 280 281 281 if ( 'bulk-edit' == id ) { 282 282 $('table.widefat #bulk-edit').removeClass('inline-editor').hide(); -
wp-admin/js/theme.js
156 156 157 157 // Cache jQuery selectors 158 158 this.$outList = $('#availablethemes'); 159 this.$spinner = $('div.tablenav.bottom').children( ' img.ajax-loading' );159 this.$spinner = $('div.tablenav.bottom').children( '.spinner' ); 160 160 this.$window = $(window); 161 161 this.$document = $(document); 162 162 … … 231 231 'list_args': list_args 232 232 }; 233 233 234 this.$spinner. css( 'visibility', 'visible');234 this.$spinner.show(); 235 235 $.getJSON( ajaxurl, query ) 236 236 .done( function( response ) { 237 237 self.nextPage++; 238 238 self.process( response ); 239 self.$spinner. css( 'visibility', 'hidden');239 self.$spinner.hide(); 240 240 self.querying = false; 241 241 }) 242 242 .fail( function() { 243 self.$spinner. css( 'visibility', 'hidden');243 self.$spinner.hide(); 244 244 self.querying = false; 245 245 setTimeout( function() { self.ajax(); }, self.failedRetryDelay ); 246 246 }); -
wp-admin/js/post.js
185 185 186 186 this.st += num; 187 187 this.total = total; 188 $('#commentsdiv img.waiting').show();188 $('#commentsdiv .spinner').show(); 189 189 190 190 data = { 191 191 'action' : 'get-comments', … … 200 200 function(r) { 201 201 r = wpAjax.parseAjaxResponse(r); 202 202 $('#commentsdiv .widefat').show(); 203 $('#commentsdiv img.waiting').hide();203 $('#commentsdiv .spinner').hide(); 204 204 205 205 if ( 'object' == typeof r && r.responses[0] ) { 206 206 $('#the-comment-list').append( r.responses[0].data ); -
wp-admin/options-general.php
44 44 }); 45 45 $("input[name='date_format_custom'], input[name='time_format_custom']").change( function() { 46 46 var format = $(this); 47 format.siblings(' img').css('visibility','visible');47 format.siblings('.spinner').css('display', 'inline-block'); // show(); can't be used here 48 48 $.post(ajaxurl, { 49 49 action: 'date_format_custom' == format.attr('name') ? 'date_format' : 'time_format', 50 50 date : format.val() 51 }, function(d) { format.siblings(' img').css('visibility','hidden'); format.siblings('.example').text(d); } );51 }, function(d) { format.siblings('.spinner').hide(); format.siblings('.example').text(d); } ); 52 52 }); 53 53 }); 54 54 //]]> … … 250 250 251 251 echo ' <label><input type="radio" name="date_format" id="date_format_custom_radio" value="\c\u\s\t\o\m"'; 252 252 checked( $custom ); 253 echo '/> ' . __('Custom:') . ' </label><input type="text" name="date_format_custom" value="' . esc_attr( get_option('date_format') ) . '" class="small-text" /> <span class="example"> ' . date_i18n( get_option('date_format') ) . "</span> < img class='ajax-loading' src='" . esc_url( admin_url( 'images/wpspin_light.gif' ) ) . "' />\n";253 echo '/> ' . __('Custom:') . ' </label><input type="text" name="date_format_custom" value="' . esc_attr( get_option('date_format') ) . '" class="small-text" /> <span class="example"> ' . date_i18n( get_option('date_format') ) . "</span> <span class='spinner'></span>\n"; 254 254 255 255 echo "\t<p>" . __('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date and time formatting</a>.') . "</p>\n"; 256 256 ?> … … 282 282 283 283 echo ' <label><input type="radio" name="time_format" id="time_format_custom_radio" value="\c\u\s\t\o\m"'; 284 284 checked( $custom ); 285 echo '/> ' . __('Custom:') . ' </label><input type="text" name="time_format_custom" value="' . esc_attr( get_option('time_format') ) . '" class="small-text" /> <span class="example"> ' . date_i18n( get_option('time_format') ) . "</span> < img class='ajax-loading' src='" . esc_url( admin_url( 'images/wpspin_light.gif' ) ) . "' />\n";285 echo '/> ' . __('Custom:') . ' </label><input type="text" name="time_format_custom" value="' . esc_attr( get_option('time_format') ) . '" class="small-text" /> <span class="example"> ' . date_i18n( get_option('time_format') ) . "</span> <span class='spinner'></span>\n"; 286 286 ; 287 287 ?> 288 288 </fieldset> -
wp-admin/press-this.php
Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: wp-admin/images/wpspin_light-2x.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream
427 427 show('photo'); 428 428 <?php } ?> 429 429 jQuery('#title').unbind(); 430 jQuery('#publish, #save').click(function() { jQuery(' #saving').css('display', 'inline'); });430 jQuery('#publish, #save').click(function() { jQuery('.press-this #publishing-actions .spinner').css('display', 'inline-block'); }); 431 431 432 432 $('#tagsdiv-post_tag, #categorydiv').children('h3, .handlediv').click(function(){ 433 433 $(this).siblings('.inside').toggle(); … … 467 467 echo '<br /><br />'; 468 468 submit_button( __( 'Submit for Review' ), 'primary', 'review', false ); 469 469 } ?> 470 < img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" id="saving" style="display:none;" />470 <span class="spinner" style="display: none;"></span> 471 471 </p> 472 472 <?php if ( current_theme_supports( 'post-formats' ) && post_type_supports( 'post', 'post-formats' ) ) : 473 473 $post_formats = get_theme_support( 'post-formats' ); … … 586 586 </div> 587 587 </div> 588 588 589 <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>589 <div id="waiting" style="display: none"><span class="spinner"></span> <span><?php esc_html_e( 'Loading...' ); ?></span></div> 590 590 591 591 <div id="extra-fields" style="display: none"></div> 592 592 -
wp-admin/css/wp-admin-rtl.css
845 845 font-style: normal; 846 846 } 847 847 848 #commentsdiv img.waiting{848 #commentsdiv .spinner { 849 849 padding-left: 0; 850 850 padding-right: 5px; 851 851 } … … 1089 1089 1090 1090 /* reply to comments */ 1091 1091 1092 #replysubmit img.waiting,1093 .inline-edit-save img.waiting{1092 #replysubmit .spinner, 1093 .inline-edit-save .spinner { 1094 1094 float: left; 1095 1095 } 1096 1096 … … 1508 1508 1509 1509 * html #template div {margin-left: 0;} 1510 1510 1511 .list-ajax-loading {1512 float: left;1513 margin-right: 0;1514 margin-left: 9px;1515 }1516 1517 1511 /* - Used - but could/should be deprecated with a CSS reset 1518 1512 ------------------------------------------------------------------------------*/ 1519 1513 /* No RTL for now, this space intentionally left blank */ … … 1858 1852 float: left; 1859 1853 } 1860 1854 1861 #dashboard-widgets #dashboard_quick_press form p.submit img.waiting{1855 #dashboard-widgets #dashboard_quick_press form p.submit .spinner { 1862 1856 margin: 4px 0 0 6px; 1863 1857 } 1864 1858 -
wp-admin/css/wp-admin.css
968 968 line-height: 23px; 969 969 } 970 970 971 #publishing-action .spinner { 972 float: left; 973 } 974 971 975 #misc-publishing-actions { 972 976 padding: 6px 0 0; 973 977 } … … 1099 1103 } 1100 1104 1101 1105 .ajax-feedback { 1102 visibility: hidden;1103 1106 vertical-align: bottom; 1104 1107 } 1105 1108 … … 2374 2377 border-bottom: 0 none; 2375 2378 } 2376 2379 2377 #commentsdiv img.waiting{2380 #commentsdiv .spinner { 2378 2381 padding-left: 5px; 2379 2382 } 2380 2383 … … 2814 2817 11.0 - Write/Edit Post Screen 2815 2818 ------------------------------------------------------------------------------*/ 2816 2819 2820 #show-comments { 2821 overflow: hidden; 2822 } 2823 2824 #save-action .spinner, 2825 #show-comments a, 2826 #show-comments .spinner { 2827 float: left; 2828 } 2829 2817 2830 #titlediv { 2818 2831 position: relative; 2819 2832 margin-bottom: 10px; … … 2848 2861 padding: 8px 10px; 2849 2862 } 2850 2863 2864 #wp-fullscreen-save .fs-saved { 2865 color: #999; 2866 float: right; 2867 margin-top: 4px; 2868 } 2869 2851 2870 #wp-fullscreen-title-prompt-text { 2852 2871 padding: 11px; 2853 2872 } … … 2898 2917 vertical-align: middle; 2899 2918 } 2900 2919 2901 #wpcontent .ajax-loading {2902 visibility: hidden;2903 }2904 2905 2920 .submitbox .submit { 2906 2921 text-align: left; 2907 2922 padding: 12px 10px 10px; … … 3976 3991 position: absolute; 3977 3992 top: 0; 3978 3993 background: #FFFFFF url(../images/wpspin_light.gif) no-repeat scroll 22px 10px; 3994 background-size: 16px 16px; 3979 3995 opacity: 0.7; 3980 3996 filter: alpha(opacity=70); 3981 3997 width: 100%; … … 3983 3999 display: none; 3984 4000 } 3985 4001 4002 .spinner { 4003 background: url(../images/wpspin_light.gif) no-repeat; 4004 background-size: 16px 16px; 4005 display: none; 4006 float: right; 4007 opacity: 0.7; 4008 filter: alpha(opacity=70); 4009 width: 16px; 4010 height: 16px; 4011 margin: 5px 5px 0; 4012 } 4013 4014 @media only screen and (-webkit-min-device-pixel-ratio: 1.5) { 4015 .imgedit-wait { 4016 background: #FFFFFF url(../images/wpspin_light-2x.gif) no-repeat scroll 22px 10px; 4017 } 4018 .spinner { 4019 background: url(../images/wpspin_light-2x.gif) no-repeat; 4020 } 4021 .customize-loading #customize-container { 4022 background: #fff url("../images/wpspin_light-2x.gif") no-repeat fixed center center; 4023 } 4024 } 4025 4026 .no-float { 4027 float: none; 4028 } 4029 3986 4030 .media-disabled, 3987 4031 .imgedit-settings .disabled { 3988 4032 color: grey; 3989 4033 } 3990 4034 3991 .imgedit-wait-spin { 4035 .wp_attachment_image, .A1B1 { 4036 overflow: hidden; 4037 } 4038 4039 .wp_attachment_image .button, .A1B1 .button { 4040 float: left; 4041 } 4042 4043 .wp_attachment_image .spinner, .A1B1 .spinner { 4044 float: left; 3992 4045 padding: 0 4px 4px; 3993 4046 vertical-align: bottom; 3994 visibility: hidden;3995 4047 } 3996 4048 3997 4049 .imgedit-menu { … … 4277 4329 text-align: center; 4278 4330 } 4279 4331 4280 #replysubmit img.waiting,4281 .inline-edit-save img.waiting{4332 #replysubmit .spinner, 4333 .inline-edit-save .spinner { 4282 4334 padding: 4px 10px 0; 4283 4335 vertical-align: top; 4284 4336 float: right; … … 4903 4955 vertical-align: middle; 4904 4956 } 4905 4957 4958 .options-general-php .spinner { 4959 float: none; 4960 margin: -3px 3px; 4961 } 4906 4962 4907 4963 /*------------------------------------------------------------------------------ 4908 4964 21.0 - Admin Footer … … 5457 5513 5458 5514 .customize-loading #customize-container { 5459 5515 background: #fff url("../images/wpspin_light.gif") no-repeat fixed center center; 5516 background-size: 16px 16px; 5460 5517 } 5461 5518 5462 5519 #customize-container iframe, … … 5761 5818 max-height: 60px; 5762 5819 } 5763 5820 5764 .list-ajax-loading {5765 float: right;5766 margin-right: 9px;5767 margin-top: -1px;5768 }5769 5770 5821 .tablenav .list-ajax-loading { 5771 5822 margin-top: 7px; 5772 5823 } … … 5982 6033 color: red; 5983 6034 } 5984 6035 5985 #dashboard_right_now . waiting{6036 #dashboard_right_now .spinner { 5986 6037 color: #e66f00; 5987 6038 } 5988 6039 … … 6140 6191 float: right; 6141 6192 } 6142 6193 6143 #dashboard-widgets #dashboard_quick_press form p.submit img.waiting{6194 #dashboard-widgets #dashboard_quick_press form p.submit .spinner { 6144 6195 vertical-align: middle; 6145 6196 visibility: hidden; 6146 6197 margin: 4px 6px 0 0; … … 6701 6752 margin-top: 5px; 6702 6753 } 6703 6754 6755 .button.right, .button-secondary.right, .button-primary.right { 6756 float: right; 6757 } 6758 6704 6759 /* Button Secondary Actions */ 6705 6760 .list-controls { 6706 6761 float: left; … … 6711 6766 float: right; 6712 6767 } 6713 6768 6714 .postbox img.waiting{6769 .postbox .spinner { 6715 6770 display: none; 6716 6771 vertical-align: middle; 6717 6772 } … … 7471 7526 7472 7527 #waiting { 7473 7528 margin-top: 10px; 7529 overflow: hidden; 7474 7530 } 7475 7531 7532 #waiting span { 7533 float: right; 7534 margin: 0 0 0 5px; 7535 } 7536 7537 #waiting .spinner { 7538 display: block; 7539 } 7540 7476 7541 #extra-fields .postbox { 7477 7542 margin-bottom: 5px; 7478 7543 } … … 7545 7610 } 7546 7611 7547 7612 /* Submit */ 7548 #saving{7613 .press-this #publishing-actions .spinner { 7549 7614 display: inline; 7550 7615 vertical-align: middle; 7551 7616 } … … 7990 8055 padding-top: 2px; 7991 8056 } 7992 8057 8058 .sidebar-name .spinner { 8059 float: none; 8060 margin: 0 3px -3px; 8061 } 8062 7993 8063 .sidebar-name-arrow { 7994 8064 float: right; 7995 8065 height: 29px; … … 8179 8249 .locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap { 8180 8250 margin-left: 8em; 8181 8251 } 8252 8253 .update-php .spinner { 8254 float: none; 8255 margin: -4px 0; 8256 } 8257 No newline at end of file -
wp-admin/css/customize-controls-rtl.css
10 10 float: left; 11 11 } 12 12 13 #customize-header-actions img{13 #customize-header-actions .spinner { 14 14 float: left; 15 15 margin-right: 0; 16 16 margin-left: 4px; -
wp-admin/css/customize-controls.css
160 160 margin-top: 10px; 161 161 } 162 162 163 #customize-header-actions img { 164 display: none; 165 float: right; 166 margin-top: 13px; 163 #customize-header-actions .spinner { 164 margin-top: 16px; 167 165 margin-right: 4px; 168 166 } 169 167 170 .saving #customize-header-actions img{168 .saving #customize-header-actions .spinner { 171 169 display: block; 172 170 } 173 171 -
wp-admin/widgets.php
345 345 <div class="sidebar-name"> 346 346 <div class="sidebar-name-arrow"><br /></div> 347 347 <h3><?php echo esc_html( $registered_sidebar['name'] ); ?> 348 <span ><img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-feedback" title="" alt="" /></span>348 <span class="spinner"></span> 349 349 </h3> 350 350 </div> 351 351 <div class="widget-holder inactive"> … … 380 380 <div class="sidebar-name"> 381 381 <div class="sidebar-name-arrow"><br /></div> 382 382 <h3><?php echo esc_html( $registered_sidebar['name'] ); ?> 383 <span ><img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-feedback" title="" alt="" /></span></h3></div>383 <span class="spinner"></span></h3></div> 384 384 <?php wp_list_widget_controls( $sidebar ); // Show the control forms for each of the widgets in this sidebar ?> 385 385 </div> 386 386 <?php