Tweak colors for trash, spam and undo of comments, fix IE6/7 background for unapproved comments, fix JS error in IE6/7, props caesarsgrunt, see #4529
git-svn-id: https://develop.svn.wordpress.org/trunk@12291 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
365fea47fc
commit
a0ea0aa4ed
File diff suppressed because one or more lines are too long
|
@ -621,9 +621,12 @@ tr.inactive + tr.plugin-update-tr .plugin-update {
|
|||
color: #557799;
|
||||
}
|
||||
|
||||
#the-comment-list .unapproved,
|
||||
#the-comment-list .unapproved th,
|
||||
#the-comment-list .unapproved td {
|
||||
#the-comment-list tr.undo,
|
||||
#the-comment-list div.undo {
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
|
||||
#the-comment-list .unapproved {
|
||||
background-color: #ffffe0;
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -616,9 +616,12 @@ tr.inactive + tr.plugin-update-tr .plugin-update {
|
|||
color: #557799;
|
||||
}
|
||||
|
||||
#the-comment-list .unapproved,
|
||||
#the-comment-list .unapproved th,
|
||||
#the-comment-list .unapproved td {
|
||||
#the-comment-list tr.undo,
|
||||
#the-comment-list div.undo {
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
|
||||
#the-comment-list .unapproved {
|
||||
background-color: #ffffe0;
|
||||
}
|
||||
|
||||
|
|
|
@ -425,3 +425,9 @@ table.ie-fixed {
|
|||
* html .describe .field textarea {
|
||||
width: 440px;
|
||||
}
|
||||
|
||||
#the-comment-list .unapproved tr,
|
||||
#the-comment-list .unapproved td {
|
||||
background-color: #ffffe0;
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ setCommentsList = function() {
|
|||
|
||||
a.click(function(){
|
||||
list.wpList.del(this);
|
||||
$('#undo-' + id).css( {backgroundColor:'#6c6'} ).fadeOut(300, function(){
|
||||
$('#undo-' + id).css( {backgroundColor:'#ceb'} ).fadeOut(350, function(){
|
||||
$(this).remove();
|
||||
$('#comment-' + id).css('backgroundColor', '').fadeIn(300, function(){ $(this).show() });
|
||||
});
|
||||
|
@ -189,21 +189,22 @@ setCommentsList = function() {
|
|||
else if ( N < 0 )
|
||||
dashboardTotals(1);
|
||||
} else {
|
||||
// XML response
|
||||
total = totalInput.val() ? parseInt( totalInput.val(), 10 ) : 0;
|
||||
total = total - spam - trash;
|
||||
if ( total < 0 )
|
||||
total = 0;
|
||||
|
||||
if ( ( 'object' == typeof r ) && lastConfidentTime < settings.parsed.responses[0].supplemental.time ) {
|
||||
pageLinks = settings.parsed.responses[0].supplemental.pageLinks || '';
|
||||
if ( $.trim( pageLinks ) )
|
||||
$('.tablenav-pages').find( '.page-numbers' ).remove().end().append( $( pageLinks ) );
|
||||
else
|
||||
$('.tablenav-pages').find( '.page-numbers' ).remove();
|
||||
|
||||
updateTotalCount( total, settings.parsed.responses[0].supplemental.time, true );
|
||||
} else {
|
||||
updateTotalCount( total, r, false );
|
||||
}
|
||||
|
||||
total = totalInput.val() ? parseInt( totalInput.val(), 10 ) : 0;
|
||||
total = total - spam - trash;
|
||||
if ( total < 0 )
|
||||
total = 0;
|
||||
|
||||
updateTotalCount( total, r, false );
|
||||
}
|
||||
|
||||
if ( theExtraList.size() == 0 || theExtraList.children().size() == 0 || untrash ) {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -115,7 +115,7 @@ function prepareMediaItemInit(fileObj) {
|
|||
jQuery('.filename .title', item).css('font-weight','normal');
|
||||
jQuery('a.undo', item).addClass('hidden');
|
||||
jQuery('a.describe-toggle-on, .menu_order_input', item).show();
|
||||
item.css( {backgroundColor:'#3c3'} ).animate( {backgroundColor: '#fff'}, { queue: false, duration: 300, complete: function(){ jQuery(this).css({backgroundColor:''}); } }).removeClass('trash-undo');
|
||||
item.css( {backgroundColor:'#ceb'} ).animate( {backgroundColor: '#fff'}, { queue: false, duration: 500, complete: function(){ jQuery(this).css({backgroundColor:''}); } }).removeClass('undo');
|
||||
}
|
||||
});
|
||||
return false;
|
||||
|
@ -154,7 +154,7 @@ function deleteSuccess(data, textStatus) {
|
|||
// Vanish it.
|
||||
jQuery('.toggle', item).toggle();
|
||||
jQuery('.slidetoggle', item).slideUp(200).siblings().removeClass('hidden');
|
||||
item.css( {backgroundColor:'#f33'} ).animate( {backgroundColor:'#fff'}, {queue:false, duration:500} ).addClass('trash-undo');
|
||||
item.css( {backgroundColor:'#faa'} ).animate( {backgroundColor:'#f4f4f4'}, {queue:false, duration:500} ).addClass('undo');
|
||||
|
||||
jQuery('.filename:empty', item).remove();
|
||||
jQuery('.filename .title', item).css('font-weight','bold');
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -122,7 +122,7 @@ wpList = {
|
|||
|
||||
s.element = cls[2] || s.element || null;
|
||||
if ( cls[3] ) { s.delColor = '#' + cls[3]; }
|
||||
else { s.delColor = s.delColor || '#FF3333'; }
|
||||
else { s.delColor = s.delColor || '#faa'; }
|
||||
|
||||
if ( !s || !s.element ) { return false; }
|
||||
|
||||
|
@ -156,7 +156,7 @@ wpList = {
|
|||
s.success = function(r) {
|
||||
var res = wpAjax.parseAjaxResponse(r, s.response, s.element), o;
|
||||
if ( !res || res.errors ) {
|
||||
element.stop().stop().css( 'backgroundColor', '#FF3333' ).show().queue( function() { list.wpList.recolor(); $(this).dequeue(); } );
|
||||
element.stop().stop().css( 'backgroundColor', '#faa' ).show().queue( function() { list.wpList.recolor(); $(this).dequeue(); } );
|
||||
return false;
|
||||
}
|
||||
if ( $.isFunction(s.delAfter) ) {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -102,7 +102,7 @@ function wp_default_scripts( &$scripts ) {
|
|||
$scripts->add( 'autosave', "/wp-includes/js/autosave$suffix.js", array('schedule', 'wp-ajax-response'), '20091012' );
|
||||
$scripts->add_data( 'autosave', 'group', 1 );
|
||||
|
||||
$scripts->add( 'wp-lists', "/wp-includes/js/wp-lists$suffix.js", array('wp-ajax-response'), '20091017' );
|
||||
$scripts->add( 'wp-lists', "/wp-includes/js/wp-lists$suffix.js", array('wp-ajax-response'), '20091128' );
|
||||
$scripts->add_data( 'wp-lists', 'group', 1 );
|
||||
|
||||
$scripts->add( 'scriptaculous-root', '/wp-includes/js/scriptaculous/wp-scriptaculous.js', array('prototype'), '1.8.0');
|
||||
|
@ -193,7 +193,7 @@ function wp_default_scripts( &$scripts ) {
|
|||
$scripts->add( 'swfupload-all', '/wp-includes/js/swfupload/swfupload-all.js', array(), '2201');
|
||||
}
|
||||
|
||||
$scripts->add( 'swfupload-handlers', "/wp-includes/js/swfupload/handlers$suffix.js", array('swfupload-all', 'jquery'), '2201-20091127');
|
||||
$scripts->add( 'swfupload-handlers', "/wp-includes/js/swfupload/handlers$suffix.js", array('swfupload-all', 'jquery'), '2201-20091128');
|
||||
$max_upload_size = ( (int) ( $max_up = @ini_get('upload_max_filesize') ) < (int) ( $max_post = @ini_get('post_max_size') ) ) ? $max_up : $max_post;
|
||||
if ( empty($max_upload_size) )
|
||||
$max_upload_size = __('not configured');
|
||||
|
@ -263,7 +263,7 @@ function wp_default_scripts( &$scripts ) {
|
|||
$scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array('jquery'), '20090514' );
|
||||
$scripts->add_data( 'user-profile', 'group', 1 );
|
||||
|
||||
$scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20091127' );
|
||||
$scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20091128' );
|
||||
$scripts->add_data( 'admin-comments', 'group', 1 );
|
||||
$scripts->localize( 'admin-comments', 'adminCommentsL10n', array(
|
||||
'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),
|
||||
|
@ -425,12 +425,12 @@ function wp_default_styles( &$styles ) {
|
|||
$rtl_styles = array( 'global', 'colors', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'press-this', 'plugin-install', 'farbtastic' );
|
||||
|
||||
// all colors stylesheets need to have the same query strings (cache manifest compat)
|
||||
$colors_version = '20091127';
|
||||
$colors_version = '20091128';
|
||||
|
||||
$styles->add( 'wp-admin', "/wp-admin/wp-admin$suffix.css", array(), '20091126' );
|
||||
$styles->add_data( 'wp-admin', 'rtl', "/wp-admin/rtl$suffix.css" );
|
||||
|
||||
$styles->add( 'ie', '/wp-admin/css/ie.css', array(), '20090922' );
|
||||
$styles->add( 'ie', '/wp-admin/css/ie.css', array(), '20091128' );
|
||||
$styles->add_data( 'ie', 'conditional', 'lte IE 7' );
|
||||
|
||||
// Register "meta" stylesheet for admin colors. All colors-* style sheets should have the same version string.
|
||||
|
|
Loading…
Reference in New Issue