Index: src/wp-admin/css/customize-controls.css =================================================================== --- src/wp-admin/css/customize-controls.css (revision 31323) +++ src/wp-admin/css/customize-controls.css (working copy) @@ -32,10 +32,6 @@ margin-right: 4px; } -.saving #customize-header-actions .spinner { - display: block; -} - #customize-header-actions { border-bottom: 1px solid #ddd; } Index: src/wp-admin/js/dashboard.js =================================================================== --- src/wp-admin/js/dashboard.js (revision 31323) +++ src/wp-admin/js/dashboard.js (working copy) @@ -68,7 +68,7 @@ $( '#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]' ).prop( 'disabled' , false ); t = $('#quick-press').submit( function() { - $('#dashboard_quick_press #publishing-action .spinner').show(); + $( '#dashboard_quick_press #publishing-action .spinner' ).addClass( 'is-active' ); $('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop('disabled', true); $.post( t.attr( 'action' ), t.serializeArray(), function( data ) { Index: src/wp-admin/js/edit-comments.js =================================================================== --- src/wp-admin/js/edit-comments.js (revision 31323) +++ src/wp-admin/js/edit-comments.js (working copy) @@ -352,7 +352,7 @@ $('#replycontent').css('height', '').val(''); $('#edithead input').val(''); $('.error', replyrow).html('').hide(); - $('.spinner', replyrow).hide(); + $( '.spinner', replyrow ).removeClass( 'is-active' ); this.cid = ''; }, @@ -442,7 +442,7 @@ var post = {}; $('#replysubmit .error').hide(); - $('#replysubmit .spinner').show(); + $( '#replysubmit .spinner' ).addClass( 'is-active' ); $('#replyrow input').not(':button').each(function() { var t = $(this); @@ -525,7 +525,7 @@ error : function(r) { var er = r.statusText; - $('#replysubmit .spinner').hide(); + $( '#replysubmit .spinner' ).removeClass( 'is-active' ); if ( r.responseText ) er = r.responseText.replace( /<.[^<>]*?>/g, '' ); Index: src/wp-admin/js/image-edit.js =================================================================== --- src/wp-admin/js/image-edit.js (revision 31323) +++ src/wp-admin/js/image-edit.js (working copy) @@ -306,7 +306,7 @@ btn = $('#imgedit-open-btn-' + postid), spin = btn.siblings('.spinner'); btn.prop('disabled', true); - spin.show(); + spin.addClass( 'is-active' ); data = { 'action': 'image-editor', @@ -324,7 +324,7 @@ head.fadeOut('fast', function(){ elem.fadeIn('fast'); btn.removeAttr('disabled'); - spin.hide(); + spin.removeClass( 'is-active' ); }); }); Index: src/wp-admin/js/inline-edit-post.js =================================================================== --- src/wp-admin/js/inline-edit-post.js (revision 31323) +++ src/wp-admin/js/inline-edit-post.js (working copy) @@ -243,7 +243,7 @@ id = this.getId(id); } - $('table.widefat .spinner').show(); + $( 'table.widefat .spinner' ).addClass( 'is-active' ); params = { action: 'inline-save', @@ -259,7 +259,7 @@ // make ajax request $.post( ajaxurl, params, function(r) { - $('table.widefat .spinner').hide(); + $( 'table.widefat .spinner' ).removeClass( 'is-active' ); if (r) { if ( -1 !== r.indexOf( '
' + navMenuL10n.noResultsFound + '
' ); - $('.spinner', panel).hide(); + $( '.spinner', panel ).removeClass( 'is-active' ); return; } @@ -1172,7 +1172,7 @@ }); $('.categorychecklist', panel).html( $items ); - $('.spinner', panel).hide(); + $( '.spinner', panel ).removeClass( 'is-active' ); }, removeMenuItem : function(el) { Index: src/wp-admin/js/post.js =================================================================== --- src/wp-admin/js/post.js (revision 31323) +++ src/wp-admin/js/post.js (working copy) @@ -193,7 +193,7 @@ this.st += num; this.total = total; - $('#commentsdiv .spinner').show(); + $( '#commentsdiv .spinner' ).addClass( 'is-active' ); data = { 'action' : 'get-comments', @@ -208,7 +208,7 @@ function(r) { r = wpAjax.parseAjaxResponse(r); $('#commentsdiv .widefat').show(); - $('#commentsdiv .spinner').hide(); + $( '#commentsdiv .spinner' ).removeClass( 'is-active' ); if ( 'object' == typeof r && r.responses[0] ) { $('#the-comment-list').append( r.responses[0].data ); Index: src/wp-admin/js/widgets.js =================================================================== --- src/wp-admin/js/widgets.js (revision 31323) +++ src/wp-admin/js/widgets.js (working copy) @@ -340,7 +340,7 @@ data = widget.find('form').serialize(), a; widget = $(widget); - $('.spinner', widget).show(); + $( '.spinner', widget ).addClass( 'is-active' ); a = { action: 'save-widget', @@ -377,7 +377,7 @@ widget.remove(); } } else { - $('.spinner').hide(); + $( '.spinner' ).removeClass( 'is-active' ); if ( r && r.length > 2 ) { $( 'div.widget-content', widget ).html( r ); wpWidgets.appendTitle( widget ); Index: src/wp-admin/options-general.php =================================================================== --- src/wp-admin/options-general.php (revision 31323) +++ src/wp-admin/options-general.php (working copy) @@ -60,11 +60,11 @@ }); $("input[name='date_format_custom'], input[name='time_format_custom']").change( function() { var format = $(this); - format.siblings('.spinner').css('display', 'inline-block'); // show(); can't be used here + format.siblings( '.spinner' ).addClass( 'is-active' ); $.post(ajaxurl, { action: 'date_format_custom' == format.attr('name') ? 'date_format' : 'time_format', date : format.val() - }, function(d) { format.siblings('.spinner').hide(); format.siblings('.example').text(d); } ); + }, function( d ) { format.siblings( '.spinner' ).removeClass( 'is-active' ); format.siblings( '.example' ).text( d ); } ); }); var languageSelect = $( '#WPLANG' ); Index: src/wp-admin/press-this.php =================================================================== --- src/wp-admin/press-this.php (revision 31323) +++ src/wp-admin/press-this.php (working copy) @@ -451,7 +451,7 @@ show('photo'); jQuery('#title').unbind(); - jQuery('#publish, #save').click(function() { jQuery('.press-this #publishing-actions .spinner').css('display', 'inline-block'); }); + jQuery( '#publish, #save' ).click(function() { jQuery( '.press-this #publishing-actions .spinner' ).addClass( 'is-active' ); } ); $('#tagsdiv-post_tag, #categorydiv').children('h3, .handlediv').click(function(){ $(this).siblings('.inside').toggle(); @@ -497,7 +497,7 @@ echo '