Files
dss/static/js/app/models/show/showCollection.coffee
2014-05-06 19:55:28 +01:00

16 lines
497 B
CoffeeScript

define ['backbone', 'models/show/showItem', 'app.lib/backbone.dss.model.collection'],
(Backbone, ShowItem, DssCollection) ->
class ScheduleCollection extends DssCollection
model: ShowItem
page: 0
limit: 20
url: ->
com.podnoms.settings.urlRoot + "shows/?limit=" + @limit + "&offset=" + Math.max(@page-1, 0) * @limit
initialize: ->
if not ShowItem
@model = require('models/show/showItem')
ScheduleCollection