Ticket #22839: 22839.4.diff
File 22839.4.diff, 10.1 KB (added by , 8 years ago) |
---|
-
src/wp-admin/css/customize-controls.css
32 32 margin-right: 4px; 33 33 } 34 34 35 .saving #customize-header-actions .spinner {36 display: block;37 }38 39 35 #customize-header-actions { 40 36 border-bottom: 1px solid #ddd; 41 37 } -
src/wp-admin/js/dashboard.js
68 68 $( '#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]' ).prop( 'disabled' , false ); 69 69 70 70 t = $('#quick-press').submit( function() { 71 $( '#dashboard_quick_press #publishing-action .spinner').show();71 $( '#dashboard_quick_press #publishing-action .spinner' ).addClass( 'is-active' ); 72 72 $('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop('disabled', true); 73 73 74 74 $.post( t.attr( 'action' ), t.serializeArray(), function( data ) { -
src/wp-admin/js/edit-comments.js
352 352 $('#replycontent').css('height', '').val(''); 353 353 $('#edithead input').val(''); 354 354 $('.error', replyrow).html('').hide(); 355 $( '.spinner', replyrow).hide();355 $( '.spinner', replyrow ).removeClass( 'is-active' ); 356 356 357 357 this.cid = ''; 358 358 }, … … 442 442 var post = {}; 443 443 444 444 $('#replysubmit .error').hide(); 445 $( '#replysubmit .spinner').show();445 $( '#replysubmit .spinner' ).addClass( 'is-active' ); 446 446 447 447 $('#replyrow input').not(':button').each(function() { 448 448 var t = $(this); … … 525 525 error : function(r) { 526 526 var er = r.statusText; 527 527 528 $( '#replysubmit .spinner').hide();528 $( '#replysubmit .spinner' ).removeClass( 'is-active' ); 529 529 530 530 if ( r.responseText ) 531 531 er = r.responseText.replace( /<.[^<>]*?>/g, '' ); -
src/wp-admin/js/image-edit.js
306 306 btn = $('#imgedit-open-btn-' + postid), spin = btn.siblings('.spinner'); 307 307 308 308 btn.prop('disabled', true); 309 spin. show();309 spin.addClass( 'is-active' ); 310 310 311 311 data = { 312 312 'action': 'image-editor', … … 324 324 head.fadeOut('fast', function(){ 325 325 elem.fadeIn('fast'); 326 326 btn.removeAttr('disabled'); 327 spin. hide();327 spin.removeClass( 'is-active' ); 328 328 }); 329 329 }); 330 330 -
src/wp-admin/js/inline-edit-post.js
243 243 id = this.getId(id); 244 244 } 245 245 246 $( 'table.widefat .spinner').show();246 $( 'table.widefat .spinner' ).addClass( 'is-active' ); 247 247 248 248 params = { 249 249 action: 'inline-save', … … 259 259 // make ajax request 260 260 $.post( ajaxurl, params, 261 261 function(r) { 262 $( 'table.widefat .spinner').hide();262 $( 'table.widefat .spinner' ).removeClass( 'is-active' ); 263 263 264 264 if (r) { 265 265 if ( -1 !== r.indexOf( '<tr' ) ) { … … 282 282 var id = $('table.widefat tr.inline-editor').attr('id'); 283 283 284 284 if ( id ) { 285 $( 'table.widefat .spinner').hide();285 $( 'table.widefat .spinner' ).removeClass( 'is-active' ); 286 286 287 287 if ( 'bulk-edit' === id ) { 288 288 $('table.widefat #bulk-edit').removeClass('inline-editor').hide().siblings('tr.hidden').remove(); -
src/wp-admin/js/inline-edit-tax.js
74 74 id = this.getId(id); 75 75 } 76 76 77 $( 'table.widefat .spinner').show();77 $( 'table.widefat .spinner' ).addClass( 'is-active' ); 78 78 79 79 params = { 80 80 action: 'inline-save-tax', -
src/wp-admin/js/nav-menu.js
177 177 return false; 178 178 179 179 // Show the ajax spinner 180 t.find( '.spinner').show();180 t.find( '.spinner' ).addClass( 'is-active' ); 181 181 182 182 // Retrieve menu item data 183 183 $(checkboxes).each(function(){ … … 194 194 api.addItemToMenu(menuItems, processMethod, function(){ 195 195 // Deselect the items and hide the ajax spinner 196 196 checkboxes.removeAttr('checked'); 197 t.find( '.spinner').hide();197 t.find( '.spinner' ).removeClass( 'is-active' ); 198 198 }); 199 199 }); 200 200 }, … … 877 877 'type': input.attr('name') 878 878 }; 879 879 880 $( '.spinner', panel).show();880 $( '.spinner', panel ).addClass( 'is-active' ); 881 881 882 882 $.post( ajaxurl, params, function(menuMarkup) { 883 883 api.processQuickSearchQueryResponse(menuMarkup, params, panel); … … 894 894 return false; 895 895 896 896 // Show the ajax spinner 897 $( '.customlinkdiv .spinner').show();897 $( '.customlinkdiv .spinner' ).addClass( 'is-active' ); 898 898 this.addLinkToMenu( url, label, processMethod, function() { 899 899 // Remove the ajax spinner 900 $( '.customlinkdiv .spinner').hide();900 $( '.customlinkdiv .spinner' ).removeClass( 'is-active' ); 901 901 // Set custom link form back to defaults 902 902 $('#custom-menu-item-name').val('').blur(); 903 903 $('#custom-menu-item-url').val('http://'); … … 1145 1145 1146 1146 if( ! $items.length ) { 1147 1147 $('.categorychecklist', panel).html( '<li><p>' + navMenuL10n.noResultsFound + '</p></li>' ); 1148 $( '.spinner', panel).hide();1148 $( '.spinner', panel ).removeClass( 'is-active' ); 1149 1149 return; 1150 1150 } 1151 1151 … … 1172 1172 }); 1173 1173 1174 1174 $('.categorychecklist', panel).html( $items ); 1175 $( '.spinner', panel).hide();1175 $( '.spinner', panel ).removeClass( 'is-active' ); 1176 1176 }, 1177 1177 1178 1178 removeMenuItem : function(el) { -
src/wp-admin/js/post.js
193 193 194 194 this.st += num; 195 195 this.total = total; 196 $( '#commentsdiv .spinner').show();196 $( '#commentsdiv .spinner' ).addClass( 'is-active' ); 197 197 198 198 data = { 199 199 'action' : 'get-comments', … … 208 208 function(r) { 209 209 r = wpAjax.parseAjaxResponse(r); 210 210 $('#commentsdiv .widefat').show(); 211 $( '#commentsdiv .spinner').hide();211 $( '#commentsdiv .spinner' ).removeClass( 'is-active' ); 212 212 213 213 if ( 'object' == typeof r && r.responses[0] ) { 214 214 $('#the-comment-list').append( r.responses[0].data ); -
src/wp-admin/js/widgets.js
340 340 data = widget.find('form').serialize(), a; 341 341 342 342 widget = $(widget); 343 $( '.spinner', widget).show();343 $( '.spinner', widget ).addClass( 'is-active' ); 344 344 345 345 a = { 346 346 action: 'save-widget', … … 377 377 widget.remove(); 378 378 } 379 379 } else { 380 $( '.spinner').hide();380 $( '.spinner' ).removeClass( 'is-active' ); 381 381 if ( r && r.length > 2 ) { 382 382 $( 'div.widget-content', widget ).html( r ); 383 383 wpWidgets.appendTitle( widget ); -
src/wp-admin/options-general.php
60 60 }); 61 61 $("input[name='date_format_custom'], input[name='time_format_custom']").change( function() { 62 62 var format = $(this); 63 format.siblings( '.spinner').css('display', 'inline-block'); // show(); can't be used here63 format.siblings( '.spinner' ).addClass( 'is-active' ); 64 64 $.post(ajaxurl, { 65 65 action: 'date_format_custom' == format.attr('name') ? 'date_format' : 'time_format', 66 66 date : format.val() 67 }, function( d) { format.siblings('.spinner').hide(); format.siblings('.example').text(d); } );67 }, function( d ) { format.siblings( '.spinner' ).removeClass( 'is-active' ); format.siblings( '.example' ).text( d ); } ); 68 68 }); 69 69 70 70 var languageSelect = $( '#WPLANG' ); -
src/wp-admin/press-this.php
451 451 show('photo'); 452 452 <?php } ?> 453 453 jQuery('#title').unbind(); 454 jQuery( '#publish, #save').click(function() { jQuery('.press-this #publishing-actions .spinner').css('display', 'inline-block'); });454 jQuery( '#publish, #save' ).click(function() { jQuery( '.press-this #publishing-actions .spinner' ).addClass( 'is-active' ); } ); 455 455 456 456 $('#tagsdiv-post_tag, #categorydiv').children('h3, .handlediv').click(function(){ 457 457 $(this).siblings('.inside').toggle(); … … 497 497 echo '<br /><br />'; 498 498 submit_button( __( 'Submit for Review' ), 'primary', 'review', false ); 499 499 } ?> 500 <span class="spinner" style="display: none;"></span>500 <span class="spinner"></span> 501 501 </p> 502 502 <?php if ( current_theme_supports( 'post-formats' ) && post_type_supports( 'post', 'post-formats' ) ) : 503 503 $post_formats = get_theme_support( 'post-formats' ); -
src/wp-includes/css/editor.css
1371 1371 } 1372 1372 1373 1373 #wp-link .link-search-wrapper .spinner { 1374 display: none;1375 1374 vertical-align: text-bottom; 1376 1375 } 1377 1376 -
src/wp-includes/css/media-views.css
1785 1785 right: 26px; 1786 1786 } 1787 1787 1788 .media-frame .embed-loading .embed-url .spinner {1789 display: block;1790 }1791 1792 1788 .embed-link-settings, 1793 1789 .embed-media-settings { 1794 1790 position: absolute;