mirror of
https://github.com/fergalmoran/dss.git
synced 2026-01-03 15:34:00 +00:00
16 lines
515 B
CoffeeScript
Executable File
16 lines
515 B
CoffeeScript
Executable File
define ['backbone', 'models/user/userItem', 'app.lib/backbone.dss.model.collection'],
|
|
(Backbone, UserItem, DssCollection) ->
|
|
class UserCollection extends DssCollection
|
|
model: UserItem
|
|
page: 0
|
|
limit: 20
|
|
url: ->
|
|
com.podnoms.settings.urlRoot + "user/?limit=" + @limit + "&offset=" + Math.max(@page-1, 0) * @limit
|
|
initialize: ->
|
|
console.clear()
|
|
if not UserItem
|
|
@model = require('models/user/userItem')
|
|
|
|
UserCollection
|
|
|