mirror of
https://github.com/fergalmoran/dss.git
synced 2025-12-25 19:17:35 +00:00
39 lines
1.3 KiB
JavaScript
39 lines
1.3 KiB
JavaScript
// Generated by CoffeeScript 1.4.0
|
|
(function() {
|
|
var __hasProp = {}.hasOwnProperty,
|
|
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
|
|
|
|
define(['backbone', 'models/show/showItem', 'app.lib/backbone.dss.model.collection'], function(Backbone, ShowItem, DssCollection) {
|
|
var ScheduleCollection;
|
|
ScheduleCollection = (function(_super) {
|
|
|
|
__extends(ScheduleCollection, _super);
|
|
|
|
function ScheduleCollection() {
|
|
return ScheduleCollection.__super__.constructor.apply(this, arguments);
|
|
}
|
|
|
|
ScheduleCollection.prototype.model = ShowItem;
|
|
|
|
ScheduleCollection.prototype.page = 0;
|
|
|
|
ScheduleCollection.prototype.limit = 20;
|
|
|
|
ScheduleCollection.prototype.url = function() {
|
|
return com.podnoms.settings.urlRoot + "show/?limit=" + this.limit + "&offset=" + Math.max(this.page - 1, 0) * this.limit;
|
|
};
|
|
|
|
ScheduleCollection.prototype.initialize = function() {
|
|
if (!ShowItem) {
|
|
return this.model = require('models/show/showItem');
|
|
}
|
|
};
|
|
|
|
return ScheduleCollection;
|
|
|
|
})(DssCollection);
|
|
return ScheduleCollection;
|
|
});
|
|
|
|
}).call(this);
|