Ticket #22839: 22839.2.diff
File 22839.2.diff, 16.6 KB (added by , 13 years ago) |
---|
-
wp-includes/js/wplink.js
303 303 return; 304 304 305 305 wpLink.lastSearch = search; 306 waiting = t.parent().find('.spinner'). show();306 waiting = t.parent().find('.spinner').addClass('active'); 307 307 308 308 rivers.search.change( search ); 309 rivers.search.ajax( function(){ waiting. hide(); });309 rivers.search.ajax( function(){ waiting.removeClass('active'); }); 310 310 } else { 311 311 rivers.search.hide(); 312 312 rivers.recent.show(); -
wp-includes/js/autosave.js
22 22 t.addClass('button-disabled'); 23 23 }); 24 24 if ( $(this).attr('id') == 'publish' ) 25 $('#major-publishing-actions .spinner'). show();25 $('#major-publishing-actions .spinner').addClass('active'); 26 26 else 27 $('#minor-publishing .spinner'). show();27 $('#minor-publishing .spinner').addClass('active'); 28 28 }); 29 29 30 30 window.onbeforeunload = function(){ … … 230 230 // delay that a bit to avoid some rare collisions while the DOM is being updated. 231 231 setTimeout(function(){ 232 232 jQuery(':button, :submit', '#submitpost').removeAttr('disabled'); 233 jQuery('.spinner', '#submitpost'). hide();233 jQuery('.spinner', '#submitpost').removeClass('active'); 234 234 }, 500); 235 235 } 236 236 -
wp-includes/css/media-views.css
1278 1278 display: none; 1279 1279 } 1280 1280 1281 .media-sidebar .save-waiting .settings-save-status .spinner,1282 1281 .media-sidebar .save-complete .settings-save-status .saved { 1283 1282 display: block; 1284 1283 } … … 1426 1425 right: 26px; 1427 1426 } 1428 1427 1429 .media-frame .embed-loading .embed-url .spinner {1430 display: block;1431 }1432 1433 1428 .embed-link-settings, 1434 1429 .embed-image-settings { 1435 1430 position: absolute; … … 1670 1665 .media-frame .spinner { 1671 1666 background-image: url(../images/wpspin-2x.gif); 1672 1667 } 1673 } 1674 No newline at end of file 1668 } -
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
130 130 return false; 131 131 132 132 // Show the ajax spinner 133 t.find('.spinner'). show();133 t.find('.spinner').addClass('active'); 134 134 135 135 // Retrieve menu item data 136 136 $(checkboxes).each(function(){ … … 146 146 api.addItemToMenu(menuItems, processMethod, function(){ 147 147 // Deselect the items and hide the ajax spinner 148 148 checkboxes.removeAttr('checked'); 149 t.find('.spinner'). hide();149 t.find('.spinner').removeClass('active'); 150 150 }); 151 151 }); 152 152 }, … … 471 471 loc.find('select').each(function() { 472 472 params[this.name] = $(this).val(); 473 473 }); 474 loc.find('.spinner'). show();474 loc.find('.spinner').addClass('active'); 475 475 $.post( ajaxurl, params, function(r) { 476 loc.find('.spinner'). hide();476 loc.find('.spinner').removeClass('active'); 477 477 }); 478 478 return false; 479 479 }); … … 515 515 'type': input.attr('name') 516 516 }; 517 517 518 $('.spinner', panel). show();518 $('.spinner', panel).addClass('active'); 519 519 520 520 $.post( ajaxurl, params, function(menuMarkup) { 521 521 api.processQuickSearchQueryResponse(menuMarkup, params, panel); … … 532 532 return false; 533 533 534 534 // Show the ajax spinner 535 $('.customlinkdiv .spinner'). show();535 $('.customlinkdiv .spinner').addClass('active'); 536 536 this.addLinkToMenu( url, label, processMethod, function() { 537 537 // Remove the ajax spinner 538 $('.customlinkdiv .spinner'). hide();538 $('.customlinkdiv .spinner').removeClass('active'); 539 539 // Set custom link form back to defaults 540 540 $('#custom-menu-item-name').val('').blur(); 541 541 $('#custom-menu-item-url').val('http://'); … … 905 905 906 906 if( ! $items.length ) { 907 907 $('.categorychecklist', panel).html( '<li><p>' + navMenuL10n.noResultsFound + '</p></li>' ); 908 $('.spinner', panel). hide();908 $('.spinner', panel).removeClass('active'); 909 909 return; 910 910 } 911 911 … … 932 932 }); 933 933 934 934 $('.categorychecklist', panel).html( $items ); 935 $('.spinner', panel). hide();935 $('.spinner', panel).removeClass('active'); 936 936 }, 937 937 938 938 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
237 237 if ( typeof(id) == 'object' ) 238 238 id = this.getId(id); 239 239 240 $('table.widefat .spinner'). show();240 $('table.widefat .spinner').addClass('active'); 241 241 242 242 params = { 243 243 action: 'inline-save', … … 253 253 // make ajax request 254 254 $.post( ajaxurl, params, 255 255 function(r) { 256 $('table.widefat .spinner'). hide();256 $('table.widefat .spinner').removeClass('active'); 257 257 258 258 if (r) { 259 259 if ( -1 != r.indexOf('<tr') ) { … … 276 276 var id = $('table.widefat tr.inline-editor').attr('id'); 277 277 278 278 if ( id ) { 279 $('table.widefat .spinner'). hide();279 $('table.widefat .spinner').removeClass('active'); 280 280 281 281 if ( 'bulk-edit' == id ) { 282 282 $('table.widefat #bulk-edit').removeClass('inline-editor').hide(); -
wp-admin/js/theme.js
231 231 'list_args': list_args 232 232 }; 233 233 234 this.$spinner. show();234 this.$spinner.addClass('active'); 235 235 $.getJSON( ajaxurl, query ) 236 236 .done( function( response ) { 237 237 self.nextPage++; 238 238 self.process( response ); 239 self.$spinner. hide();239 self.$spinner.removeClass('active'); 240 240 self.querying = false; 241 241 }) 242 242 .fail( function() { 243 self.$spinner. hide();243 self.$spinner.removeClass('active'); 244 244 self.querying = false; 245 245 setTimeout( function() { self.ajax(); }, self.failedRetryDelay ); 246 246 }); -
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 ); … … 544 544 if ( ! updateText() ) { 545 545 e.preventDefault(); 546 546 $('#timestampdiv').show(); 547 $('#publishing-action .spinner'). hide();547 $('#publishing-action .spinner').removeClass('active'); 548 548 $('#publish').prop('disabled', false).removeClass('button-primary-disabled'); 549 549 return false; 550 550 } -
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
427 427 show('photo'); 428 428 <?php } ?> 429 429 jQuery('#title').unbind(); 430 jQuery('#publish, #save').click(function() { jQuery('.press-this #publishing-actions .spinner'). css('display', 'inline-block'); });430 jQuery('#publish, #save').click(function() { jQuery('.press-this #publishing-actions .spinner').addClass('active'); }); 431 431 432 432 $('#tagsdiv-post_tag, #categorydiv').children('h3, .handlediv').click(function(){ 433 433 $(this).siblings('.inside').toggle(); … … 467 467 echo '<br /><br />'; 468 468 submit_button( __( 'Submit for Review' ), 'primary', 'review', false ); 469 469 } ?> 470 <span class="spinner" style="display: none;"></span>470 <span class="spinner"></span> 471 471 </p> 472 472 <?php if ( current_theme_supports( 'post-formats' ) && post_type_supports( 'post', 'post-formats' ) ) : 473 473 $post_formats = get_theme_support( 'post-formats' ); -
wp-admin/css/wp-admin.css
2831 2831 } 2832 2832 2833 2833 .inline-edit-save .spinner { 2834 padding : 4px 10px 0;2834 padding-top: 4px; 2835 2835 vertical-align: top; 2836 2836 float: right; 2837 2837 } … … 4190 4190 margin: 5px 5px 0; 4191 4191 } 4192 4192 4193 .spinner.active { 4194 display: inline-block; 4195 } 4196 4193 4197 .no-float { 4194 4198 float: none; 4195 4199 } … … 6979 6983 } 6980 6984 6981 6985 .postbox .spinner { 6982 display: none;6983 6986 vertical-align: middle; 6984 6987 } 6985 6988 … … 7750 7753 margin: 0 0 0 5px; 7751 7754 } 7752 7755 7753 #waiting .spinner {7754 display: block;7755 }7756 7757 7756 #extra-fields .postbox { 7758 7757 margin-bottom: 5px; 7759 7758 } … … 7827 7826 7828 7827 /* Submit */ 7829 7828 .press-this #publishing-actions .spinner { 7830 display: inline;7831 7829 vertical-align: middle; 7832 7830 } 7833 7831 -
wp-admin/css/customize-controls.css
172 172 margin-right: 4px; 173 173 } 174 174 175 .saving #customize-header-actions .spinner {176 display: block;177 }178 179 175 .customize-control { 180 176 width: 100%; 181 177 float: left;