Ticket #23120: 23120.7.diff
File 23120.7.diff, 2.2 KB (added by , 11 years ago) |
---|
-
wp-admin/css/wp-admin.css
5938 5938 margin: 2px 5px 0; 5939 5939 } 5940 5940 5941 .spinner.success, 5942 .spinner.error { 5943 background-image: url('../images/uploader-icons.png'); 5944 background-size: 134px 15px; 5945 } 5946 5947 .spinner.success { 5948 background-position: 0 1px; 5949 } 5950 5951 .spinner.error { 5952 background-position: -16px 1px; 5953 } 5954 5941 5955 .no-float { 5942 5956 float: none; 5943 5957 } … … 11534 11548 background-image: url('../images/spinner-2x.gif'); 11535 11549 } 11536 11550 11551 .spinner.error, 11552 .spinner.success { 11553 background-image: url('../images/uploader-icons-2x.png'); 11554 background-size: 134px 16px; 11555 } 11556 .spinner.error { 11557 background-position: -32px 2px; 11558 } 11559 .spinner.success { 11560 background-position: 0 2px; 11561 } 11562 11537 11563 } 11538 11564 11539 11565 /* =Localized CSS -
wp-admin/js/widgets.js
313 313 action: 'widgets-order', 314 314 savewidgets: $('#_wpnonce_widgets').val(), 315 315 sidebars: [] 316 } ;316 }, spinner; 317 317 318 318 if ( sidebarId ) { 319 $( '#' + sidebarId ).find('.spinner:first').css('display', 'inline-block');319 spinner = $( '#' + sidebarId ).find('.spinner:first').css('display', 'inline-block'); 320 320 } 321 321 322 322 $('div.widgets-sortables').each( function() { … … 326 326 }); 327 327 328 328 $.post( ajaxurl, data, function() { 329 $('.spinner').hide(); 329 if ( spinner ) { 330 spinner.addClass( 'success' ).css( 'opacity', 1 ).fadeOut( 'slow', function() { 331 spinner.removeClass( 'success' ); 332 }); 333 } 334 }) 335 .error( function() { 336 if ( spinner ) { 337 spinner.addClass( 'error' ).css( 'opacity', 1 ).fadeOut( 'slow', function() { 338 spinner.removeClass( 'error' ); 339 }); 340 } 330 341 }); 331 342 }, 332 343 … … 372 383 widget.remove(); 373 384 } 374 385 } else { 375 $('.spinner').hide(); 386 $('.spinner', widget).addClass('success').fadeOut('slow', function() { 387 $(this).removeClass('success'); 388 }); 389 376 390 if ( r && r.length > 2 ) { 377 391 $( 'div.widget-content', widget ).html(r); 378 392 wpWidgets.appendTitle( widget );