1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-06-30 08:53:49 +00:00
seahub/static/scripts/app/collections/group-discussions.js

20 lines
423 B
JavaScript
Raw Normal View History

2016-03-08 05:36:58 +00:00
define([
'underscore',
'backbone',
'common'
], function(_, Backbone, Common) {
'use strict';
var GroupDiscussions = Backbone.Collection.extend({
setGroupId: function(group_id) {
this.group_id = group_id;
},
url: function() {
return Common.getUrl({name: 'group_discussions', group_id: this.group_id});
}
});
return GroupDiscussions;
});