2007-10-09 18:49:42 -04:00
|
|
|
jQuery(function($) {
|
|
|
|
var delAfter; var extra; var list;
|
|
|
|
|
|
|
|
if ( document.location.href.match(/(\?|&)c=/) )
|
|
|
|
delAfter = function() { $('#comments, #the-comment-list').remove(); }
|
|
|
|
else
|
|
|
|
delAfter = function() {
|
|
|
|
list[0].wpList.add( extra.children(':eq(0)').remove().clone() );
|
2007-10-23 19:02:24 -04:00
|
|
|
$('#get-extra-posts').submit();
|
2007-10-09 18:49:42 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
var addBefore = function ( settings ) {
|
|
|
|
var q = document.location.href.split('?');
|
|
|
|
if ( q[1] )
|
|
|
|
settings.data += '&' + q[1];
|
|
|
|
return settings;
|
|
|
|
}
|
|
|
|
|
|
|
|
extra = $('#the-extra-list').wpList( { alt: '', addBefore: addBefore, addColor: 'none', delColor: 'none' } );
|
|
|
|
list = $('#the-list').wpList( { delAfter: delAfter, addColor: 'none' } );
|
|
|
|
|
|
|
|
} );
|