added second paginator to client page
parent
c620917d53
commit
95a876ffec
|
@ -377,6 +377,7 @@ var ClientListView = Backbone.View.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
changePage:function(event, num) {
|
changePage:function(event, num) {
|
||||||
|
$('.paginator', this.el).bootpag({page:num});
|
||||||
$('#client-table tbody tr', this.el).each(function(index, element) {
|
$('#client-table tbody tr', this.el).each(function(index, element) {
|
||||||
if (Math.ceil((index + 1) / 10) != num) {
|
if (Math.ceil((index + 1) / 10) != num) {
|
||||||
$(element).hide();
|
$(element).hide();
|
||||||
|
|
|
@ -101,6 +101,8 @@
|
||||||
There are no registered clients on this server.
|
There are no registered clients on this server.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="pagination paginator"></div>
|
||||||
|
|
||||||
<table id="client-table" class="table table-hover table-striped">
|
<table id="client-table" class="table table-hover table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in New Issue