pull/1379/head
John McLear 2013-01-20 23:11:59 +00:00
parent 8bfa8a7e73
commit 441dd3785a
1 changed files with 5 additions and 1 deletions

View File

@ -114,7 +114,11 @@ $(document).ready(function () {
widget.data('total', data.total);
widget.find('.offset').html(data.query.offset);
widget.find('.limit').html(data.query.offset + data.query.limit);
if (data.query.offset + data.query.limit > data.total){
widget.find('.limit').html(data.total);
}else{
widget.find('.limit').html(data.query.offset + data.query.limit);
}
widget.find('.total').html(data.total);
widget.find(".results *").remove();