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

Add group discussion delete

This commit is contained in:
Daniel Pan
2016-03-18 11:21:26 +08:00
committed by llj
parent 077a2627f0
commit 26d25c6448
6 changed files with 43 additions and 8 deletions

View File

@@ -1,11 +1,14 @@
define([
'underscore',
'backbone',
'common'
], function(_, Backbone, Common) {
'common',
'app/models/group-discussion'
], function(_, Backbone, Common, GroupDiscussion) {
'use strict';
var GroupDiscussions = Backbone.Collection.extend({
model: GroupDiscussion,
setGroupId: function(group_id) {
this.group_id = group_id;
},
@@ -13,6 +16,7 @@ define([
url: function() {
return Common.getUrl({name: 'group_discussions', group_id: this.group_id});
}
});
return GroupDiscussions;