Changeset 31996
- Timestamp:
- 04/03/2015 04:51:18 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/common.css
r31973 r31996 1961 1961 -webkit-background-size: 20px 20px; 1962 1962 background-size: 20px 20px; 1963 display: none; 1963 display: inline-block; 1964 visibility: hidden; 1964 1965 float: right; 1966 vertical-align: middle; 1965 1967 opacity: 0.7; 1966 1968 filter: alpha(opacity=70); 1967 1969 width: 20px; 1968 1970 height: 20px; 1969 margin: 2px 5px 0; 1971 margin: 4px 10px 0; 1972 } 1973 1974 .spinner.is-active { 1975 visibility: visible; 1970 1976 } 1971 1977 -
trunk/src/wp-admin/css/forms.css
r31993 r31996 819 819 float: none; 820 820 margin: 0 3px; 821 vertical-align: text-bottom;822 821 } 823 822 -
trunk/src/wp-admin/css/list-tables.css
r31890 r31996 107 107 padding: 0 5px 3px; 108 108 text-align: center; 109 }110 111 #replysubmit .spinner {112 padding: 2px 0 0;113 vertical-align: top;114 float: right;115 109 } 116 110 … … 362 356 #commentsdiv .comments-box tr:last-child td { 363 357 border-bottom: 0 none; 364 }365 366 #commentsdiv .spinner {367 padding-left: 5px;368 358 } 369 359 … … 913 903 } 914 904 915 .inline-edit-save .spinner {916 padding: 4px 10px 0;917 vertical-align: top;918 float: right;919 }920 921 905 /* Styling */ 922 906 .inline-edit-row h4 { -
trunk/src/wp-admin/css/media.css
r31505 r31996 275 275 .find-box-search .spinner { 276 276 float: none; 277 left: 1 10px;277 left: 105px; 278 278 position: absolute; 279 top: 2px;280 279 } 281 280 … … 912 911 .A1B1 .spinner { 913 912 float: left; 914 padding: 0 0 4px 0;915 vertical-align: bottom;916 913 } 917 914 -
trunk/src/wp-admin/css/nav-menus.css
r31524 r31996 350 350 } 351 351 352 .postbox .spinner {353 display: none;354 vertical-align: middle;355 }356 357 352 .button-controls { 358 353 clear:both; … … 407 402 .quick-search { 408 403 width: 190px; 404 } 405 406 .quick-search-wrap .spinner { 407 float: none; 408 margin: 0 5px; 409 409 } 410 410 -
trunk/src/wp-admin/css/press-this.css
r31992 r31996 1387 1387 } 1388 1388 1389 .spinner.is- visible {1389 .spinner.is-active { 1390 1390 visibility: visible; 1391 1391 } -
trunk/src/wp-admin/css/widgets.css
r31422 r31996 272 272 273 273 .sidebar-name .spinner { 274 float: none; 275 position: relative; 276 top: -2px; 274 277 margin: -5px 5px; 275 float: none;276 278 } 277 279 -
trunk/src/wp-admin/js/edit-comments.js
r31929 r31996 353 353 $('#edithead input').val(''); 354 354 $('.error', replyrow).empty().hide(); 355 $( '.spinner', replyrow).hide();355 $( '.spinner', replyrow ).removeClass( 'is-active' ); 356 356 357 357 this.cid = ''; … … 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() { … … 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 ) -
trunk/src/wp-admin/js/image-edit.js
r29560 r31996 307 307 308 308 btn.prop('disabled', true); 309 spin. show();309 spin.addClass( 'is-active' ); 310 310 311 311 data = { … … 325 325 elem.fadeIn('fast'); 326 326 btn.removeAttr('disabled'); 327 spin. hide();327 spin.removeClass( 'is-active' ); 328 328 }); 329 329 }); -
trunk/src/wp-admin/js/inline-edit-post.js
r31820 r31996 251 251 } 252 252 253 $( 'table.widefat .spinner').show();253 $( 'table.widefat .spinner' ).addClass( 'is-active' ); 254 254 255 255 params = { … … 267 267 $.post( ajaxurl, params, 268 268 function(r) { 269 $( 'table.widefat .spinner').hide();269 $( 'table.widefat .spinner' ).removeClass( 'is-active' ); 270 270 271 271 if (r) { … … 290 290 291 291 if ( id ) { 292 $( 'table.widefat .spinner').hide();292 $( 'table.widefat .spinner' ).removeClass( 'is-active' ); 293 293 294 294 if ( 'bulk-edit' === id ) { -
trunk/src/wp-admin/js/inline-edit-tax.js
r31820 r31996 82 82 } 83 83 84 $( 'table.widefat .spinner').show();84 $( 'table.widefat .spinner' ).addClass( 'is-active' ); 85 85 86 86 params = { … … 98 98 function(r) { 99 99 var row, new_id, option_value; 100 $( 'table.widefat .spinner').hide();100 $( 'table.widefat .spinner' ).removeClass( 'is-active' ); 101 101 102 102 if (r) { … … 134 134 135 135 if ( id ) { 136 $( 'table.widefat .spinner').hide();136 $( 'table.widefat .spinner' ).removeClass( 'is-active' ); 137 137 $('#'+id).siblings('tr.hidden').addBack().remove(); 138 138 id = id.substr( id.lastIndexOf('-') + 1 ); -
trunk/src/wp-admin/js/media.js
r31692 r31996 52 52 spinner = $( '.find-box-search .spinner' ); 53 53 54 spinner. show();54 spinner.addClass( 'is-active' ); 55 55 56 56 $.ajax( ajaxurl, { … … 59 59 dataType: 'json' 60 60 }).always( function() { 61 spinner. hide();61 spinner.removeClass( 'is-active' ); 62 62 }).done( function( x ) { 63 63 if ( ! x.success ) { -
trunk/src/wp-admin/js/nav-menu.js
r31605 r31996 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 … … 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 }); … … 863 863 params[this.name] = $(this).val(); 864 864 }); 865 loc.find( '.spinner').show();865 loc.find( '.spinner' ).addClass( 'is-active' ); 866 866 $.post( ajaxurl, params, function() { 867 loc.find( '.spinner').hide();867 loc.find( '.spinner' ).removeClass( 'is-active' ); 868 868 }); 869 869 return false; … … 907 907 }; 908 908 909 $( '.spinner', panel).show();909 $( '.spinner', panel ).addClass( 'is-active' ); 910 910 911 911 $.post( ajaxurl, params, function(menuMarkup) { … … 924 924 925 925 // Show the ajax spinner 926 $( '.customlinkdiv .spinner').show();926 $( '.customlinkdiv .spinner' ).addClass( 'is-active' ); 927 927 this.addLinkToMenu( url, label, processMethod, function() { 928 928 // Remove the ajax spinner 929 $( '.customlinkdiv .spinner').hide();929 $( '.customlinkdiv .spinner' ).removeClass( 'is-active' ); 930 930 // Set custom link form back to defaults 931 931 $('#custom-menu-item-name').val('').blur(); … … 1175 1175 if( ! $items.length ) { 1176 1176 $('.categorychecklist', panel).html( '<li><p>' + navMenuL10n.noResultsFound + '</p></li>' ); 1177 $( '.spinner', panel).hide();1177 $( '.spinner', panel ).removeClass( 'is-active' ); 1178 1178 return; 1179 1179 } … … 1202 1202 1203 1203 $('.categorychecklist', panel).html( $items ); 1204 $( '.spinner', panel).hide();1204 $( '.spinner', panel ).removeClass( 'is-active' ); 1205 1205 }, 1206 1206 -
trunk/src/wp-admin/js/post.js
r31750 r31996 21 21 this.st += num; 22 22 this.total = total; 23 $( '#commentsdiv .spinner').show();23 $( '#commentsdiv .spinner' ).addClass( 'is-active' ); 24 24 25 25 data = { … … 36 36 r = wpAjax.parseAjaxResponse(r); 37 37 $('#commentsdiv .widefat').show(); 38 $( '#commentsdiv .spinner').hide();38 $( '#commentsdiv .spinner' ).removeClass( 'is-active' ); 39 39 40 40 if ( 'object' == typeof r && r.responses[0] ) { … … 273 273 274 274 if ( $button.attr('id') === 'publish' ) { 275 $submitpost.find( '#major-publishing-actions .spinner').show();276 } else { 277 $submitpost.find( '#minor-publishing .spinner').show();275 $submitpost.find( '#major-publishing-actions .spinner' ).addClass( 'is-active' ); 276 } else { 277 $submitpost.find( '#minor-publishing .spinner' ).addClass( 'is-active' ); 278 278 } 279 279 }); … … 677 677 } 678 678 679 $( '#publishing-action .spinner').hide();679 $( '#publishing-action .spinner' ).removeClass( 'is-active' ); 680 680 } 681 681 }); -
trunk/src/wp-admin/js/press-this.js
r31992 r31996 102 102 */ 103 103 function showSpinner() { 104 $( '.spinner' ).addClass( 'is- visible' );104 $( '.spinner' ).addClass( 'is-active' ); 105 105 $( '.post-actions button' ).each( function() { 106 106 $( this ).attr( 'disabled', 'disabled' ); … … 112 112 */ 113 113 function hideSpinner() { 114 $( '.spinner' ).removeClass( 'is- visible' );114 $( '.spinner' ).removeClass( 'is-active' ); 115 115 $( '.post-actions button' ).each( function() { 116 116 $( this ).removeAttr( 'disabled' ); -
trunk/src/wp-admin/js/widgets.js
r31690 r31996 322 322 323 323 if ( sidebarId ) { 324 $( '#' + sidebarId ).find( '.spinner:first').css('display', 'inline-block');324 $( '#' + sidebarId ).find( '.spinner:first' ).addClass( 'is-active' ); 325 325 } 326 326 … … 332 332 333 333 $.post( ajaxurl, data, function() { 334 $( '.spinner').hide();334 $( '.spinner' ).removeClass( 'is-active' ); 335 335 }); 336 336 }, … … 341 341 342 342 widget = $(widget); 343 $( '.spinner', widget).show();343 $( '.spinner', widget ).addClass( 'is-active' ); 344 344 345 345 a = { … … 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 ); -
trunk/src/wp-admin/js/wp-fullscreen.js
r30890 r31996 268 268 $errorMessage = $('#wp-fullscreen-save .wp-fullscreen-error-message'); 269 269 270 $spinner. show();270 $spinner.addClass( 'is-active' ); 271 271 $errorMessage.hide(); 272 272 $saveMessage.hide(); … … 283 283 dataType: 'json' 284 284 }).done( function( response ) { 285 $spinner. hide();285 $spinner.removeClass( 'is-active' ); 286 286 287 287 if ( response && response.success ) { … … 299 299 } 300 300 }).fail( function() { 301 $spinner. hide();301 $spinner.removeClass( 'is-active' ); 302 302 $errorMessage.show(); 303 303 }); -
trunk/src/wp-admin/options-general.php
r31993 r31996 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 -
trunk/src/wp-includes/css/editor.css
r31957 r31996 1376 1376 1377 1377 #wp-link .link-search-wrapper .spinner { 1378 display: none; 1379 vertical-align: text-bottom; 1378 margin-top: 5px; 1380 1379 } 1381 1380 … … 1504 1503 display: none; 1505 1504 padding: 10px 0; 1506 }1507 1508 #wp-link .river-waiting .spinner {1509 margin: 0 auto;1510 display: block;1511 float: none;1512 1505 } 1513 1506 -
trunk/src/wp-includes/js/wplink.js
r31724 r31996 406 406 407 407 wpLink.lastSearch = search; 408 waiting = t.parent().find( '.spinner').show();408 waiting = t.parent().find( '.spinner' ).addClass( 'is-active' ); 409 409 410 410 rivers.search.change( search ); 411 411 rivers.search.ajax( function() { 412 waiting. hide();412 waiting.removeClass( 'is-active' ); 413 413 }); 414 414 } else { … … 646 646 return; 647 647 648 self.waiting. show();648 self.waiting.addClass( 'is-active' ); 649 649 el.scrollTop( newTop + self.waiting.outerHeight() ); 650 650 651 651 self.ajax( function() { 652 self.waiting. hide();652 self.waiting.removeClass( 'is-active' ); 653 653 }); 654 654 }, wpLink.timeToTriggerRiver );
Note: See TracChangeset
for help on using the changeset viewer.