Ticket #4529: 4529-tweaks-alt.diff
| File 4529-tweaks-alt.diff, 4.4 KB (added by caesarsgrunt, 4 years ago) |
|---|
-
wp-includes/js/swfupload/handlers.dev.js
114 114 jQuery('.filename .trashnotice', item).remove(); 115 115 jQuery('a.undo', item).addClass('hidden'); 116 116 jQuery('a.describe-toggle-on, .menu_order_input', item).show(); 117 item.animate( {backgroundColor: '#fff'}, { queue: false, duration: 200, complete: function(){ jQuery(this).css({backgroundColor:''}); } }) ;117 item.animate( {backgroundColor: '#fff'}, { queue: false, duration: 200, complete: function(){ jQuery(this).css({backgroundColor:''}); } }).removeClass('trash-undo'); 118 118 } 119 119 }); 120 120 return false; … … 153 153 // Vanish it. 154 154 jQuery('.toggle', item).toggle(); 155 155 jQuery('.slidetoggle', item).slideUp(200).siblings().removeClass('hidden'); 156 item.css( {backgroundColor:'#fff'} ).animate( {backgroundColor:'#ffc0c0'}, {queue:false, duration:500} ) ;156 item.css( {backgroundColor:'#fff'} ).animate( {backgroundColor:'#ffc0c0'}, {queue:false, duration:500} ).addClass('trash-undo'); 157 157 158 158 jQuery('.filename:empty', item).remove(); 159 159 jQuery('.filename', item).append('<span class="trashnotice"> ' + swfuploadL10n.deleted + ' </span>').siblings('a.toggle').hide(); 160 160 jQuery('.filename', item).append( jQuery('a.undo', item).removeClass('hidden') ); 161 161 jQuery('.menu_order_input', item).hide(); 162 162 163 163 return; 164 164 } 165 165 -
wp-admin/js/edit-comments.dev.js
49 49 50 50 if ( el.is('tr') ) { 51 51 n = el.children(':visible').length; 52 author = $('.author strong', el). html();53 h = $('<tr id="trashundo-' + id + '" style="display:none;"><td class="trash-undo"colspan="' + n + '">' + note + '</td></tr>');52 author = $('.author strong', el).text(); 53 h = $('<tr id="trashundo-' + id + '" class="trash-undo" style="display:none;"><td colspan="' + n + '">' + note + '</td></tr>'); 54 54 } else { 55 author = $('.comment-author', el). html();55 author = $('.comment-author', el).text(); 56 56 h = $('<div id="trashundo-' + id + '" style="display:none;" class="trash-undo">' + note + '</div>'); 57 57 } 58 58 59 59 el.before(h); 60 60 61 $('strong', '#trashundo-' + id). html(author + ' ');61 $('strong', '#trashundo-' + id).text(author + ' '); 62 62 a = $('a.undo-trash', '#trashundo-' + id); 63 63 a.attr('href', 'comment.php?action=untrashcomment&c=' + id + '&_ajax_nonce=' + settings.data._ajax_nonce); 64 64 a.attr('className', 'delete:the-comment-list:comment-' + id + '::untrash=1 vim-z vim-destructive'); 65 $('.avatar', el).clone().prependTo('#trashundo-' + id + ' .trash-undo-inside'); 65 66 66 67 a.click(function(){ 67 68 list.wpList.del(this); … … 71 72 }); 72 73 return false; 73 74 }); 74 75 if ( to )76 window.clearTimeout(to);77 78 to = window.setTimeout( function(){79 $('#trashundo-' + id).fadeOut('slow', function(){ $(this).remove(); });80 }, 7000 );81 75 } 82 76 83 77 return settings; -
wp-admin/wp-admin.dev.css
3520 3520 border-top-style: solid; 3521 3521 border-top-width: 1px; 3522 3522 margin: 0 -10px; 3523 padding: 3px; 3523 padding: 3px 8px; 3524 font-size: 11px; 3524 3525 } 3525 3526 3526 3527 .trash-undo-inside { 3527 margin: 3px 8px; 3528 margin: 3px 8px 3px 0; 3529 line-height: 16px; 3528 3530 } 3531 .trash-undo-inside .avatar { 3532 height: 16px; 3533 width: 16px; 3534 margin-right: 8px; 3535 vertical-align: middle; 3536 } 3529 3537 3530 3538 /* tag hints */ 3531 3539 .taghint { -
wp-admin/css/colors-classic.dev.css
1686 1686 } 1687 1687 1688 1688 .trash-undo { 1689 background-color: # ebffe0;1689 background-color: #ffc0c0; 1690 1690 } 1691 1691 1692 1692 #dashboard_recent_comments .trash-undo { -
wp-admin/css/colors-fresh.dev.css
1675 1675 } 1676 1676 1677 1677 .trash-undo { 1678 background-color: # ebffe0;1678 background-color: #ffc0c0; 1679 1679 } 1680 1680 1681 1681 #dashboard_recent_comments .trash-undo {