Files
dss/static/js/app/models/comment.js
2012-09-26 20:24:33 +01:00

18 lines
421 B
JavaScript

/** @license
----------------------------------------------
Copyright (c) 2012, Fergal Moran. All rights reserved.
Code provided under the BSD License:
*/
var Comment = DSSModel.extend({
urlRoot:com.podnoms.settings.urlRoot + "comments/"
});
var CommentCollection = TastypieCollection.extend({
model:Comment,
comparator: function(comment){
return -comment.get("id");
}
});