Adding backgrid paginator

This commit is contained in:
Mark McDowall 2013-04-30 20:14:54 -07:00
commit 6cb6065669
5 changed files with 68 additions and 2 deletions

View file

@ -1,5 +1,5 @@
"use strict";
define(['app'], function () {
define(['app', 'Series/EpisodeModel'], function () {
NzbDrone.Missing.Collection = Backbone.PageableCollection.extend({
url : NzbDrone.Constants.ApiRoot + '/missing',
model : NzbDrone.Series.EpisodeModel,

View file

@ -64,7 +64,12 @@ define([
row : NzbDrone.Missing.Row,
columns : columns,
collection: this.missingCollection,
className : 'table table-hover'
className : 'table table-hover',
state: {
pageSize: 10,
sortKey: "airDate",
order: 1
}
}));
},