1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 07:27:04 +00:00

[dir view] added 'file comment'

This commit is contained in:
llj
2017-09-26 10:35:16 +08:00
parent f3ad5e9685
commit b55446551b
10 changed files with 427 additions and 7 deletions

View File

@@ -0,0 +1,24 @@
define([
'underscore',
'backbone',
'common'
], function(_, Backbone, Common) {
'use strict';
var collection = Backbone.Collection.extend({
url: function() {
return Common.getUrl({name: 'file-comments', repo_id: this.repo_id});
},
parse: function(data) {
return data.comments; // return the array
},
setData: function(repo_id) {
this.repo_id = repo_id;
}
});
return collection;
});