Adding backgrid paginator

This commit is contained in:
Mark McDowall
2013-04-30 20:14:54 -07:00
parent 00276041ad
commit 6cb6065669
5 changed files with 68 additions and 2 deletions
+1 -1
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,
+6 -1
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
}
}));
},