Files
dss/static/js/app/models/user/userCollection.js
2013-12-16 22:31:35 +00:00

33 lines
1.1 KiB
JavaScript
Executable File

// 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/user/userItem', 'app.lib/backbone.dss.model.collection'], function(Backbone, UserItem, DssCollection) {
var UserCollection;
UserCollection = (function(_super) {
__extends(UserCollection, _super);
function UserCollection() {
return UserCollection.__super__.constructor.apply(this, arguments);
}
UserCollection.prototype.page = 0;
UserCollection.prototype.limit = 20;
UserCollection.prototype.model = UserItem;
UserCollection.prototype.url = function() {
return com.podnoms.settings.urlRoot + "user/?limit=" + this.limit + "&offset=" + Math.max(this.page - 1, 0) * this.limit;
};
return UserCollection;
})(DssCollection);
return UserCollection;
});
}).call(this);