mirror of
https://github.com/fergalmoran/dss.git
synced 2026-01-06 17:04:30 +00:00
16 lines
497 B
CoffeeScript
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
|
|
|