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:
Andrew Ozz
2009-11-29 10:29:12 +00:00
parent 365fea47fc
commit a0ea0aa4ed
12 changed files with 42 additions and 29 deletions

File diff suppressed because one or more lines are too long

View File

@@ -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

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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