2013-06-25 02:41:59 +03:00
|
|
|
'use strict';
|
|
|
|
define(
|
|
|
|
[
|
|
|
|
'Release/Model',
|
|
|
|
'backbone.pageable'
|
|
|
|
], function (ReleaseModel, PagableCollection) {
|
|
|
|
return PagableCollection.extend({
|
2013-09-14 10:10:19 +03:00
|
|
|
url : window.NzbDrone.ApiRoot + '/release',
|
2013-06-25 02:41:59 +03:00
|
|
|
model: ReleaseModel,
|
2013-06-05 08:38:15 +03:00
|
|
|
|
2013-06-25 02:41:59 +03:00
|
|
|
mode: 'client',
|
2013-06-07 03:17:57 +03:00
|
|
|
|
2013-06-25 02:41:59 +03:00
|
|
|
state: {
|
|
|
|
pageSize: 2000
|
|
|
|
},
|
2013-06-07 03:50:17 +03:00
|
|
|
|
2013-06-25 02:41:59 +03:00
|
|
|
fetchEpisodeReleases: function (episodeId) {
|
|
|
|
return this.fetch({ data: { episodeId: episodeId }});
|
|
|
|
}
|
|
|
|
});
|
2013-06-05 08:38:15 +03:00
|
|
|
});
|