mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Bring out the shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@17228 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -213,10 +213,10 @@ setCommentsList = function() {
|
||||
|
||||
refillTheExtraList();
|
||||
};
|
||||
|
||||
|
||||
var refillTheExtraList = function(ev) {
|
||||
var args = $.query.get(), total_pages = listTable.get_total_pages(), per_page = $('input[name=_per_page]', '#comments-form').val();
|
||||
|
||||
|
||||
if (args.paged > total_pages) {
|
||||
return;
|
||||
}
|
||||
@@ -228,7 +228,7 @@ setCommentsList = function() {
|
||||
args.number = 1;
|
||||
args.offset = per_page - 1; // fetch only the last item of the next page
|
||||
}
|
||||
|
||||
|
||||
args.no_placeholder = true;
|
||||
|
||||
args.paged ++;
|
||||
@@ -277,7 +277,7 @@ commentReply = {
|
||||
});
|
||||
|
||||
this.comments_listing = $('#comments-form > input[name="comment_status"]').val() || '';
|
||||
|
||||
|
||||
$(listTable).bind('beforeChangePage', function(){
|
||||
commentReply.close();
|
||||
});
|
||||
|
||||
@@ -160,7 +160,7 @@ listTable.init();
|
||||
listTable.update_rows({'paged': paged}, false, function() {
|
||||
if ( $el.parents('.tablenav.bottom').length )
|
||||
scrollTo(0, 0);
|
||||
|
||||
|
||||
$(listTable).trigger('changePage');
|
||||
});
|
||||
}
|
||||
@@ -256,20 +256,20 @@ listTable.init();
|
||||
if ( $('h2.nav-tab-wrapper').length )
|
||||
return;
|
||||
|
||||
if ( 'site-users-network' == pagenow || 'site-themes-network' == pagenow ) {
|
||||
if ( 'site-users-network' == pagenow || 'site-themes-network' == pagenow ) {
|
||||
$('h4.search-text').remove();
|
||||
|
||||
if ( data.s )
|
||||
$('ul.subsubsub').after($('<h4 class="clear search-text">').html(
|
||||
listTableL10n.search.replace('%s', this.htmlencode(data.s))
|
||||
$('ul.subsubsub').after($('<h4 class="clear search-text">').html(
|
||||
listTableL10n.search.replace('%s', this.htmlencode(data.s))
|
||||
));
|
||||
} else {
|
||||
} else {
|
||||
$('h2 .subtitle').remove();
|
||||
|
||||
if ( data.s )
|
||||
$('h2').append($('<span class="subtitle">').html(
|
||||
listTableL10n.search.replace('%s', this.htmlencode(data.s))
|
||||
));
|
||||
if ( data.s )
|
||||
$('h2').append($('<span class="subtitle">').html(
|
||||
listTableL10n.search.replace('%s', this.htmlencode(data.s))
|
||||
));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user