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