Better to run down here when needed.
This commit is contained in:
parent
506a1141f7
commit
059e9a9494
|
@ -53,12 +53,12 @@
|
||||||
per_page : data.limit,
|
per_page : data.limit,
|
||||||
page : data.page,
|
page : data.page,
|
||||||
render : function() {
|
render : function() {
|
||||||
var rates = _.toArray( this.model.getFilteredRates() ),
|
var rates = this.model.getFilteredRates(),
|
||||||
qty_rates = rates.length,
|
qty_rates = rates.length,
|
||||||
qty_pages = Math.ceil( qty_rates / this.per_page ),
|
qty_pages = Math.ceil( qty_rates / this.per_page ),
|
||||||
first_index = this.per_page * ( this.page - 1),
|
first_index = this.per_page * ( this.page - 1),
|
||||||
last_index = this.per_page * this.page,
|
last_index = this.per_page * this.page,
|
||||||
paged_rates = rates.slice( first_index, last_index ),
|
paged_rates = _.toArray( rates ).slice( first_index, last_index ),
|
||||||
view = this;
|
view = this;
|
||||||
|
|
||||||
// Blank out the contents.
|
// Blank out the contents.
|
||||||
|
|
Loading…
Reference in New Issue