Changeset 22019
- Timestamp:
- 09/26/2012 07:57:44 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 34 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/customize-controls-rtl.css
r21592 r22019 11 11 } 12 12 13 #customize-header-actions img{13 #customize-header-actions .spinner { 14 14 float: left; 15 15 margin-right: 0; -
trunk/wp-admin/css/customize-controls.css
r21944 r22019 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 } -
trunk/wp-admin/css/wp-admin-rtl.css
r22018 r22019 841 841 } 842 842 843 #commentsdiv img.waiting{843 #commentsdiv .spinner { 844 844 padding-left: 0; 845 845 padding-right: 5px; … … 1085 1085 /* reply to comments */ 1086 1086 1087 #replysubmit img.waiting,1088 .inline-edit-save img.waiting{1087 #replysubmit .spinner, 1088 .inline-edit-save .spinner { 1089 1089 float: left; 1090 1090 } … … 1503 1503 1504 1504 * html #template div {margin-left: 0;} 1505 1506 .list-ajax-loading {1507 float: left;1508 margin-right: 0;1509 margin-left: 9px;1510 }1511 1505 1512 1506 /* - Used - but could/should be deprecated with a CSS reset … … 1854 1848 } 1855 1849 1856 #dashboard-widgets #dashboard_quick_press form p.submit img.waiting{1850 #dashboard-widgets #dashboard_quick_press form p.submit .spinner { 1857 1851 margin: 4px 0 0 6px; 1858 1852 } -
trunk/wp-admin/css/wp-admin.css
r22018 r22019 969 969 } 970 970 971 #publishing-action .spinner { 972 float: left; 973 } 974 971 975 #misc-publishing-actions { 972 976 padding: 6px 0 0; … … 1100 1104 1101 1105 .ajax-feedback { 1102 visibility: hidden;1103 1106 vertical-align: bottom; 1104 1107 } … … 2399 2402 } 2400 2403 2401 #commentsdiv img.waiting{2404 #commentsdiv .spinner { 2402 2405 padding-left: 5px; 2403 2406 } … … 2839 2842 ------------------------------------------------------------------------------*/ 2840 2843 2844 #show-comments { 2845 overflow: hidden; 2846 } 2847 2848 #save-action .spinner, 2849 #show-comments a, 2850 #show-comments .spinner { 2851 float: left; 2852 } 2853 2841 2854 #titlediv { 2842 2855 position: relative; … … 2873 2886 } 2874 2887 2888 #wp-fullscreen-save .fs-saved { 2889 color: #999; 2890 float: right; 2891 margin-top: 4px; 2892 } 2893 2875 2894 #wp-fullscreen-title-prompt-text { 2876 2895 padding: 11px; … … 2921 2940 #submitpost .ajax-loading { 2922 2941 vertical-align: middle; 2923 }2924 2925 #wpcontent .ajax-loading {2926 visibility: hidden;2927 2942 } 2928 2943 … … 3268 3283 } 3269 3284 3270 #postcustomstuff #newmetaleft a { 3285 #postcustomstuff #newmetaleft a { 3271 3286 display: inline-block; 3272 3287 margin: 0 8px 8px; … … 4000 4015 position: absolute; 4001 4016 top: 0; 4002 background: #FFFFFF url(../images/wpspin_light.gif) no-repeat scroll 22px 10px; 4017 background: #fff url(../images/wpspin_light.gif) no-repeat scroll 22px 10px; 4018 background-size: 16px 16px; 4003 4019 opacity: 0.7; 4004 4020 filter: alpha(opacity=70); … … 4008 4024 } 4009 4025 4026 .spinner { 4027 background: url(../images/wpspin_light.gif) no-repeat; 4028 background-size: 16px 16px; 4029 display: none; 4030 float: right; 4031 opacity: 0.7; 4032 filter: alpha(opacity=70); 4033 width: 16px; 4034 height: 16px; 4035 margin: 5px 5px 0; 4036 } 4037 4038 @media only screen and (-webkit-min-device-pixel-ratio: 1.5) { 4039 .spinner, 4040 .imgedit-wait, 4041 .customize-loading #customize-container { 4042 background-image: url(../images/wpspin_light-2x.gif); 4043 } 4044 } 4045 4046 .no-float { 4047 float: none; 4048 } 4049 4010 4050 .media-disabled, 4011 4051 .imgedit-settings .disabled { … … 4013 4053 } 4014 4054 4015 .imgedit-wait-spin { 4055 .wp_attachment_image, .A1B1 { 4056 overflow: hidden; 4057 } 4058 4059 .wp_attachment_image .button, .A1B1 .button { 4060 float: left; 4061 } 4062 4063 .wp_attachment_image .spinner, .A1B1 .spinner { 4064 float: left; 4016 4065 padding: 0 4px 4px; 4017 4066 vertical-align: bottom; 4018 visibility: hidden;4019 4067 } 4020 4068 … … 4302 4350 } 4303 4351 4304 #replysubmit img.waiting,4305 .inline-edit-save img.waiting{4352 #replysubmit .spinner, 4353 .inline-edit-save .spinner { 4306 4354 padding: 4px 10px 0; 4307 4355 vertical-align: top; … … 4928 4976 } 4929 4977 4978 .options-general-php .spinner { 4979 float: none; 4980 margin: -3px 3px; 4981 } 4930 4982 4931 4983 /*------------------------------------------------------------------------------ … … 5482 5534 .customize-loading #customize-container { 5483 5535 background: #fff url("../images/wpspin_light.gif") no-repeat fixed center center; 5536 background-size: 16px 16px; 5484 5537 } 5485 5538 … … 5786 5839 } 5787 5840 5788 .list-ajax-loading {5789 float: right;5790 margin-right: 9px;5791 margin-top: -1px;5792 }5793 5794 5841 .tablenav .list-ajax-loading { 5795 5842 margin-top: 7px; … … 6007 6054 } 6008 6055 6009 #dashboard_right_now . waiting{6056 #dashboard_right_now .spinner { 6010 6057 color: #e66f00; 6011 6058 } … … 6165 6212 } 6166 6213 6167 #dashboard-widgets #dashboard_quick_press form p.submit img.waiting{6214 #dashboard-widgets #dashboard_quick_press form p.submit .spinner { 6168 6215 vertical-align: middle; 6169 6216 visibility: hidden; … … 6726 6773 } 6727 6774 6775 .button.right, .button-secondary.right, .button-primary.right { 6776 float: right; 6777 } 6778 6728 6779 /* Button Secondary Actions */ 6729 6780 .list-controls { … … 6736 6787 } 6737 6788 6738 .postbox img.waiting{6789 .postbox .spinner { 6739 6790 display: none; 6740 6791 vertical-align: middle; … … 7496 7547 #waiting { 7497 7548 margin-top: 10px; 7549 overflow: hidden; 7550 } 7551 7552 #waiting span { 7553 float: right; 7554 margin: 0 0 0 5px; 7555 } 7556 7557 #waiting .spinner { 7558 display: block; 7498 7559 } 7499 7560 … … 7570 7631 7571 7632 /* Submit */ 7572 #saving{7633 .press-this #publishing-actions .spinner { 7573 7634 display: inline; 7574 7635 vertical-align: middle; … … 8013 8074 .inactive { 8014 8075 padding-top: 2px; 8076 } 8077 8078 .sidebar-name .spinner { 8079 float: none; 8080 margin: 0 3px -3px; 8015 8081 } 8016 8082 … … 8204 8270 margin-left: 8em; 8205 8271 } 8272 8273 .update-php .spinner { 8274 float: none; 8275 margin: -4px 0; 8276 } -
trunk/wp-admin/customize.php
r21135 r22019 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' ); ?> -
trunk/wp-admin/includes/class-wp-plugin-install-list-table.php
r20754 r22019 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> … … 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> -
trunk/wp-admin/includes/class-wp-posts-list-table.php
r21996 r22019 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' ) ); -
trunk/wp-admin/includes/class-wp-terms-list-table.php
r21948 r22019 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 ); ?> -
trunk/wp-admin/includes/class-wp-theme-install-list-table.php
r21311 r22019 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> -
trunk/wp-admin/includes/class-wp-themes-list-table.php
r21914 r22019 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 -
trunk/wp-admin/includes/class-wp-upgrader.php
r21755 r22019 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(); -
trunk/wp-admin/includes/dashboard.php
r22018 r22019 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" /> -
trunk/wp-admin/includes/media.php
r21980 r22019 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 … … 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; … … 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 -
trunk/wp-admin/includes/meta-boxes.php
r21948 r22019 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 ) : ?> … … 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 ) { … … 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') ?>" /> … … 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 } -
trunk/wp-admin/includes/nav-menu.php
r21996 r22019 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 … … 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> … … 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> … … 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> … … 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> … … 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> -
trunk/wp-admin/includes/template.php
r21955 r22019 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" /> -
trunk/wp-admin/includes/widgets.php
r21944 r22019 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" /> -
trunk/wp-admin/js/dashboard.js
r21894 r22019 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 … … 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(); -
trunk/wp-admin/js/edit-comments.js
r21592 r22019 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 = ''; … … 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() { … … 534 534 var er = r.statusText; 535 535 536 $('#replysubmit . waiting').hide();536 $('#replysubmit .spinner').hide(); 537 537 538 538 if ( r.responseText ) -
trunk/wp-admin/js/image-edit.js
r21592 r22019 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 = { … … 289 289 head.fadeOut('fast', function(){ 290 290 btn.removeAttr('disabled'); 291 spin. css('visibility', 'hidden');291 spin.hide(); 292 292 }); 293 293 }); -
trunk/wp-admin/js/inline-edit-post.js
r21592 r22019 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 = { … … 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) { … … 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 ) { -
trunk/wp-admin/js/inline-edit-tax.js
r21592 r22019 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 = { … … 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) { … … 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 ); -
trunk/wp-admin/js/nav-menu.js
r21592 r22019 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 … … 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 }); … … 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; … … 516 516 }; 517 517 518 $(' img.waiting', panel).show();518 $('.spinner', panel).show(); 519 519 520 520 $.post( ajaxurl, params, function(menuMarkup) { … … 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(); … … 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 } … … 933 933 934 934 $('.categorychecklist', panel).html( $items ); 935 $(' img.waiting', panel).hide();935 $('.spinner', panel).hide(); 936 936 }, 937 937 -
trunk/wp-admin/js/post.js
r22017 r22019 186 186 this.st += num; 187 187 this.total = total; 188 $('#commentsdiv img.waiting').show();188 $('#commentsdiv .spinner').show(); 189 189 190 190 data = { … … 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] ) { -
trunk/wp-admin/js/theme.js
r21592 r22019 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); … … 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 ); -
trunk/wp-admin/js/widgets.js
r21592 r22019 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 = { … … 191 191 192 192 $.post( ajaxurl, a, function() { 193 $(' img.ajax-feedback').css('visibility', 'hidden');193 $('.spinner').hide(); 194 194 }); 195 195 … … 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 = { … … 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); -
trunk/wp-admin/js/wp-fullscreen.js
r21592 r22019 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 -
trunk/wp-admin/options-general.php
r21994 r22019 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 }); … … 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"; … … 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 ?> -
trunk/wp-admin/press-this.php
r22007 r22019 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(){ … … 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' ) ) : … … 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> -
trunk/wp-admin/widgets.php
r21825 r22019 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> … … 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> -
trunk/wp-includes/class-wp-editor.php
r22012 r22019 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 … … 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> … … 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> … … 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> -
trunk/wp-includes/css/editor.css
r22016 r22019 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; … … 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; … … 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; … … 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; -
trunk/wp-includes/js/autosave.js
r21592 r22019 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 … … 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 } -
trunk/wp-includes/js/wplink.js
r21592 r22019 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 );
Note: See TracChangeset
for help on using the changeset viewer.