mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-03 09:21:03 +01:00
f8afc0b75d
git-svn-id: http://svn.automattic.com/wordpress/trunk@6213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
23 lines
650 B
JavaScript
23 lines
650 B
JavaScript
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() );
|
|
$('#get-extra-button').click();
|
|
}
|
|
|
|
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' } );
|
|
|
|
} );
|