Ticket #22839: 22839.3.diff
File 22839.3.diff, 16.8 KB (added by , 9 years ago) |
---|
-
wp-includes/js/wplink.js
318 318 return; 319 319 320 320 wpLink.lastSearch = search; 321 waiting = t.parent().find('.spinner'). show();321 waiting = t.parent().find('.spinner').addClass('active'); 322 322 323 323 rivers.search.change( search ); 324 rivers.search.ajax( function(){ waiting. hide(); });324 rivers.search.ajax( function(){ waiting.removeClass('active'); }); 325 325 } else { 326 326 rivers.search.hide(); 327 327 rivers.recent.show(); -
wp-includes/js/autosave.js
31 31 t.addClass('button-disabled'); 32 32 }); 33 33 if ( $(this).attr('id') == 'publish' ) 34 $('#major-publishing-actions .spinner'). show();34 $('#major-publishing-actions .spinner').addClass('active'); 35 35 else 36 $('#minor-publishing .spinner'). show();36 $('#minor-publishing .spinner').addClass('active'); 37 37 }); 38 38 39 39 window.onbeforeunload = function(){ … … 250 250 setTimeout(function(){ 251 251 var parent = jQuery('#submitpost'); 252 252 parent.find(':button, :submit').removeAttr('disabled'); 253 parent.find('.spinner'). hide();253 parent.find('.spinner').removeClass('active'); 254 254 }, 500); 255 255 } 256 256 } -
wp-includes/css/media-views.css
1254 1254 .media-frame .spinner { 1255 1255 background: url(../images/wpspin.gif) no-repeat; 1256 1256 background-size: 16px 16px; 1257 display: none;1258 1257 opacity: 0.7; 1259 1258 filter: alpha(opacity=70); 1260 1259 width: 16px; … … 1278 1277 display: none; 1279 1278 } 1280 1279 1281 .media-sidebar .save-waiting .settings-save-status .spinner,1282 1280 .media-sidebar .save-complete .settings-save-status .saved { 1283 1281 display: block; 1284 1282 } … … 1426 1424 right: 26px; 1427 1425 } 1428 1426 1429 .media-frame .embed-loading .embed-url .spinner {1430 display: block;1431 }1432 1433 1427 .embed-link-settings, 1434 1428 .embed-image-settings { 1435 1429 position: absolute; … … 1670 1664 .media-frame .spinner { 1671 1665 background-image: url(../images/wpspin-2x.gif); 1672 1666 } 1673 } 1674 No newline at end of file 1667 } -
wp-includes/css/editor.css
1261 1261 } 1262 1262 1263 1263 #wp-link .link-search-wrapper .spinner { 1264 display: none;1265 1264 vertical-align: text-bottom; 1266 1265 } 1267 1266 … … 1347 1346 1348 1347 #wp-link .river-waiting .spinner { 1349 1348 margin: 0 auto; 1350 display: block;1351 1349 } 1352 1350 1353 1351 #wp-link .submitbox { -
wp-admin/js/edit-comments.js
369 369 $('#replycontent').css('height', '').val(''); 370 370 $('#edithead input').val(''); 371 371 $('.error', replyrow).html('').hide(); 372 $('.spinner', replyrow). hide();372 $('.spinner', replyrow).removeClass('active'); 373 373 374 374 this.cid = ''; 375 375 }, … … 452 452 var post = {}; 453 453 454 454 $('#replysubmit .error').hide(); 455 $('#replysubmit .spinner'). show();455 $('#replysubmit .spinner').addClass('active'); 456 456 457 457 $('#replyrow input').not(':button').each(function() { 458 458 var t = $(this); … … 534 534 error : function(r) { 535 535 var er = r.statusText; 536 536 537 $('#replysubmit .spinner'). hide();537 $('#replysubmit .spinner').removeClass('active'); 538 538 539 539 if ( r.responseText ) 540 540 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 .spinner'). show();63 $('table.widefat .spinner').addClass('active'); 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 .spinner'). hide();79 $('table.widefat .spinner').removeClass('active'); 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 .spinner'). hide();102 $('table.widefat .spinner').removeClass('active'); 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('.spinner'). css('display', 'inline-block');179 $('#' + sb).closest('div.widgets-holder-wrap').find('.spinner').addClass('active'); 180 180 181 181 var a = { 182 182 action: 'widgets-order', … … 190 190 }); 191 191 192 192 $.post( ajaxurl, a, function() { 193 $('.spinner'). hide();193 $('.spinner').removeClass('active'); 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 $('.spinner', widget). show();202 $('.spinner', widget).addClass('active'); 203 203 204 204 a = { 205 205 action: 'save-widget', … … 235 235 wpWidgets.resize(); 236 236 } 237 237 } else { 238 $('.spinner'). hide();238 $('.spinner').removeClass('active'); 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
171 171 return false; 172 172 173 173 // Show the ajax spinner 174 t.find('.spinner'). show();174 t.find('.spinner').addClass('active'); 175 175 176 176 // Retrieve menu item data 177 177 $(checkboxes).each(function(){ … … 187 187 api.addItemToMenu(menuItems, processMethod, function(){ 188 188 // Deselect the items and hide the ajax spinner 189 189 checkboxes.removeAttr('checked'); 190 t.find('.spinner'). hide();190 t.find('.spinner').removeClass('active'); 191 191 }); 192 192 }); 193 193 }, … … 802 802 loc.find('select').each(function() { 803 803 params[this.name] = $(this).val(); 804 804 }); 805 loc.find('.spinner'). show();805 loc.find('.spinner').addClass('active'); 806 806 $.post( ajaxurl, params, function(r) { 807 loc.find('.spinner'). hide();807 loc.find('.spinner').removeClass('active'); 808 808 }); 809 809 return false; 810 810 }); … … 846 846 'type': input.attr('name') 847 847 }; 848 848 849 $('.spinner', panel). show();849 $('.spinner', panel).addClass('active'); 850 850 851 851 $.post( ajaxurl, params, function(menuMarkup) { 852 852 api.processQuickSearchQueryResponse(menuMarkup, params, panel); … … 863 863 return false; 864 864 865 865 // Show the ajax spinner 866 $('.customlinkdiv .spinner'). show();866 $('.customlinkdiv .spinner').addClass('active'); 867 867 this.addLinkToMenu( url, label, processMethod, function() { 868 868 // Remove the ajax spinner 869 $('.customlinkdiv .spinner'). hide();869 $('.customlinkdiv .spinner').removeClass('active'); 870 870 // Set custom link form back to defaults 871 871 $('#custom-menu-item-name').val('').blur(); 872 872 $('#custom-menu-item-url').val('http://'); … … 1109 1109 1110 1110 if( ! $items.length ) { 1111 1111 $('.categorychecklist', panel).html( '<li><p>' + navMenuL10n.noResultsFound + '</p></li>' ); 1112 $('.spinner', panel). hide();1112 $('.spinner', panel).removeClass('active'); 1113 1113 return; 1114 1114 } 1115 1115 … … 1136 1136 }); 1137 1137 1138 1138 $('.categorychecklist', panel).html( $items ); 1139 $('.spinner', panel). hide();1139 $('.spinner', panel).removeClass('active'); 1140 1140 }, 1141 1141 1142 1142 removeMenuItem : function(el) { -
wp-admin/js/wp-fullscreen.js
208 208 var hidden = $('#hiddenaction'), old = hidden.val(), spinner = $('#wp-fullscreen-save .spinner'), 209 209 message = $('#wp-fullscreen-save span'); 210 210 211 spinner. show();211 spinner.addClass('active'); 212 212 api.savecontent(); 213 213 214 214 hidden.val('wp-fullscreen-save-post'); 215 215 216 216 $.post( ajaxurl, $('form#post').serialize(), function(r){ 217 spinner. hide();217 spinner.removeClass('active'); 218 218 message.show(); 219 219 220 220 setTimeout( function(){ -
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 .spinner'). show();69 $('#dashboard_quick_press #publishing-action .spinner').addClass('active'); 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 .spinner'). hide();77 $('#dashboard_quick_press #publishing-action .spinner').removeClass('active'); 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
276 276 btn = $('#imgedit-open-btn-' + postid), spin = btn.siblings('.spinner'); 277 277 278 278 btn.prop('disabled', true); 279 spin. show();279 spin.addClass('active'); 280 280 281 281 data = { 282 282 'action': 'image-editor', … … 289 289 elem.fadeIn('fast'); 290 290 head.fadeOut('fast', function(){ 291 291 btn.removeAttr('disabled'); 292 spin. hide();292 spin.removeClass('active'); 293 293 }); 294 294 }); 295 295 }, -
wp-admin/js/media.js
52 52 }, 53 53 spinner = $( '.find-box-search .spinner' ); 54 54 55 spinner. show();55 spinner.addClass('active'); 56 56 57 57 $.ajax({ 58 58 type : 'POST', 59 59 url : ajaxurl, 60 60 data : post, 61 success : function(x) { findPosts.show(x); spinner. hide(); },62 error : function(r) { findPosts.error(r); spinner. hide(); }61 success : function(x) { findPosts.show(x); spinner.removeClass('active'); }, 62 error : function(r) { findPosts.error(r); spinner.removeClass('active'); } 63 63 }); 64 64 }, 65 65 -
wp-admin/js/inline-edit-post.js
228 228 if ( typeof(id) == 'object' ) 229 229 id = this.getId(id); 230 230 231 $('table.widefat .spinner'). show();231 $('table.widefat .spinner').addClass('active'); 232 232 233 233 params = { 234 234 action: 'inline-save', … … 244 244 // make ajax request 245 245 $.post( ajaxurl, params, 246 246 function(r) { 247 $('table.widefat .spinner'). hide();247 $('table.widefat .spinner').removeClass('active'); 248 248 249 249 if (r) { 250 250 if ( -1 != r.indexOf('<tr') ) { … … 267 267 var id = $('table.widefat tr.inline-editor').attr('id'); 268 268 269 269 if ( id ) { 270 $('table.widefat .spinner'). hide();270 $('table.widefat .spinner').removeClass('active'); 271 271 272 272 if ( 'bulk-edit' == id ) { 273 273 $('table.widefat #bulk-edit').removeClass('inline-editor').hide(); -
wp-admin/js/theme.js
256 256 'list_args': list_args 257 257 }; 258 258 259 this.$spinner. show();259 this.$spinner.addClass('active'); 260 260 $.getJSON( ajaxurl, query ) 261 261 .done( function( response ) { 262 262 self.nextPage++; 263 263 self.process( response ); 264 self.$spinner. hide();264 self.$spinner.removeClass('active'); 265 265 self.querying = false; 266 266 }) 267 267 .fail( function() { 268 self.$spinner. hide();268 self.$spinner.removeClass('active'); 269 269 self.querying = false; 270 270 setTimeout( function() { self.ajax(); }, self.failedRetryDelay ); 271 271 }); -
wp-admin/js/post.js
185 185 186 186 this.st += num; 187 187 this.total = total; 188 $('#commentsdiv .spinner'). show();188 $('#commentsdiv .spinner').addClass('active'); 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 .spinner'). hide();203 $('#commentsdiv .spinner').removeClass('active'); 204 204 205 205 if ( 'object' == typeof r && r.responses[0] ) { 206 206 $('#the-comment-list').append( r.responses[0].data ); … … 649 649 if ( ! updateText() ) { 650 650 e.preventDefault(); 651 651 $('#timestampdiv').show(); 652 $('#publishing-action .spinner'). hide();652 $('#publishing-action .spinner').removeClass('active'); 653 653 $('#publish').prop('disabled', false).removeClass('button-primary-disabled'); 654 654 return false; 655 655 } -
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('.spinner'). css('display', 'inline-block'); // show(); can't be used here47 format.siblings('.spinner').addClass('active'); 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('.spinner'). hide(); format.siblings('.example').text(d); } );51 }, function(d) { format.siblings('.spinner').removeClass('active'); format.siblings('.example').text(d); } ); 52 52 }); 53 53 }); 54 54 //]]> -
wp-admin/press-this.php
426 426 show('photo'); 427 427 <?php } ?> 428 428 jQuery('#title').unbind(); 429 jQuery('#publish, #save').click(function() { jQuery('.press-this #publishing-actions .spinner'). css('display', 'inline-block'); });429 jQuery('#publish, #save').click(function() { jQuery('.press-this #publishing-actions .spinner').addClass('active'); }); 430 430 431 431 $('#tagsdiv-post_tag, #categorydiv').children('h3, .handlediv').click(function(){ 432 432 $(this).siblings('.inside').toggle(); … … 466 466 echo '<br /><br />'; 467 467 submit_button( __( 'Submit for Review' ), 'primary', 'review', false ); 468 468 } ?> 469 <span class="spinner" style="display: none;"></span>469 <span class="spinner"></span> 470 470 </p> 471 471 <?php if ( current_theme_supports( 'post-formats' ) && post_type_supports( 'post', 'post-formats' ) ) : 472 472 $post_formats = get_theme_support( 'post-formats' ); -
wp-admin/css/wp-admin.css
2873 2873 } 2874 2874 2875 2875 .inline-edit-save .spinner { 2876 padding : 4px 10px 0;2876 padding-top: 4px; 2877 2877 vertical-align: top; 2878 2878 float: right; 2879 2879 } … … 4742 4742 margin: 5px 5px 0; 4743 4743 } 4744 4744 4745 .spinner.active { 4746 display: inline-block; 4747 } 4748 4745 4749 .no-float { 4746 4750 float: none; 4747 4751 } … … 7746 7750 } 7747 7751 7748 7752 .postbox .spinner { 7749 display: none;7750 7753 vertical-align: middle; 7751 7754 } 7752 7755 … … 8505 8508 margin: 0 0 0 5px; 8506 8509 } 8507 8510 8508 #waiting .spinner {8509 display: block;8510 }8511 8512 8511 #extra-fields .postbox { 8513 8512 margin-bottom: 5px; 8514 8513 } … … 8582 8581 8583 8582 /* Submit */ 8584 8583 .press-this #publishing-actions .spinner { 8585 display: inline;8586 8584 vertical-align: middle; 8587 8585 } 8588 8586 -
wp-admin/css/customize-controls.css
55 55 margin-right: 4px; 56 56 } 57 57 58 .saving #customize-header-actions .spinner {59 display: block;60 }61 62 58 .customize-control { 63 59 width: 100%; 64 60 float: left;