fix issue #1110
This commit is contained in:
parent
8bfa8a7e73
commit
441dd3785a
|
@ -114,7 +114,11 @@ $(document).ready(function () {
|
||||||
widget.data('total', data.total);
|
widget.data('total', data.total);
|
||||||
|
|
||||||
widget.find('.offset').html(data.query.offset);
|
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('.total').html(data.total);
|
||||||
|
|
||||||
widget.find(".results *").remove();
|
widget.find(".results *").remove();
|
||||||
|
|
Loading…
Reference in New Issue