Unify comment display. Props mdawaffe. fixes #6025

git-svn-id: https://develop.svn.wordpress.org/trunk@7082 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-02-28 06:50:25 +00:00
parent 7940191d5c
commit 992c3b92b7
8 changed files with 175 additions and 144 deletions
+5 -5
View File
@@ -1,4 +1,4 @@
var list; var extra;
var theList; var theExtraList;
jQuery(function($) {
var dimAfter = function( r, settings ) {
@@ -24,15 +24,15 @@ var delAfter = function( r, settings ) {
}
});
if ( extra.size() == 0 || extra.children().size() == 0 ) {
if ( theExtraList.size() == 0 || theExtraList.children().size() == 0 ) {
return;
}
list[0].wpList.add( extra.children(':eq(0)').remove().clone() );
theList.get(0).wpList.add( theExtraList.children(':eq(0)').remove().clone() );
$('#get-extra-comments').submit();
}
extra = $('#the-extra-comment-list').wpList( { alt: '', delColor: 'none', addColor: 'none' } );
list = $('#the-comment-list').wpList( { dimAfter : dimAfter, delAfter : delAfter, addColor: 'none' } );
theExtraList = $('#the-extra-comment-list').wpList( { alt: '', delColor: 'none', addColor: 'none' } );
theList = $('#the-comment-list').wpList( { alt: '', dimAfter: dimAfter, delAfter: delAfter, addColor: 'none' } );
} );