Ticket #24553: 24553.2.patch
File 24553.2.patch, 2.8 KB (added by , 11 years ago) |
---|
-
wp-admin/css/wp-admin.css
table.fixed { 2534 2534 tr.wp-locked .locked-indicator { 2535 2535 background: url('../images/lock.png') no-repeat; 2536 2536 margin: -2px 0 0 6px; 2537 height: 16px;2537 height: 20px; 2538 2538 width: 16px; 2539 2539 } 2540 2540 … … tr.wp-locked .row-actions .trash { 2545 2545 display: none; 2546 2546 } 2547 2547 2548 tr .locked-info { 2549 height: 0; 2550 opacity: 0; 2551 -webkit-transition: height 1s, opacity 500ms; 2552 transition: height 1s, opacity 500ms; 2553 } 2554 2555 tr.wp-locked .locked-info { 2556 height: 22px; 2557 opacity: 1; 2558 -webkit-transition: height 1s, opacity 500ms 500ms; 2559 transition: height 1s, opacity 500ms 500ms; 2560 } 2561 2548 2562 .fixed .column-comments .sorting-indicator { 2549 2563 margin-top: 3px; 2550 2564 } -
wp-admin/includes/class-wp-posts-list-table.php
class WP_Posts_List_Table extends WP_List_Table { 574 574 $locked_avatar = $locked_text = ''; 575 575 } 576 576 577 echo '< span class="locked-avatar">' . $locked_avatar . '</span> <span class="locked-text">' . $locked_text . "</span>\n";577 echo '<div class="locked-info"><span class="locked-avatar">' . $locked_avatar . '</span> <span class="locked-text">' . $locked_text . "</span></div>\n"; 578 578 } 579 579 580 580 if ( ! $this->hierarchical_display && 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) ) -
wp-admin/js/inline-edit-post.js
diff --git wp-admin/js/inline-edit-post.js wp-admin/js/inline-edit-post.js index 48e6e30..8076c31 100644
$( document ).on( 'heartbeat-tick.wp-check-locked-posts', function( e, data ) { 302 302 if ( locked.hasOwnProperty( key ) ) { 303 303 if ( ! row.hasClass('wp-locked') ) { 304 304 lock_data = locked[key]; 305 row. addClass('wp-locked').find('.column-title .locked-text').text( lock_data.text );305 row.find('.column-title .locked-text').text( lock_data.text ); 306 306 row.find('.check-column checkbox').prop('checked', false); 307 307 308 308 if ( lock_data.avatar_src ) { 309 309 avatar = $('<img class="avatar avatar-18 photo" width="18" height="18" />').attr( 'src', lock_data.avatar_src.replace(/&/g, '&') ); 310 310 row.find('.column-title .locked-avatar').empty().append( avatar ); 311 311 } 312 row.addClass('wp-locked'); 312 313 } 313 314 } else if ( row.hasClass('wp-locked') ) { 314 row.removeClass('wp-locked').find('.column-title .locked-text').empty();315 row. find('.column-title .locked-avatar').empty();315 // Make room for the CSS animation 316 row.removeClass('wp-locked').delay(1000).find('.locked-info span').empty(); 316 317 } 317 318 }); 318 319 }).on( 'heartbeat-send.wp-check-locked-posts', function( e, data ) {