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

[groups] use new collection url

This commit is contained in:
llj
2015-12-02 11:25:11 +08:00
parent 1c18e3e716
commit 51b44c40a3
5 changed files with 4 additions and 107 deletions

View File

@@ -60,6 +60,7 @@ define([
var _this = this;
this.groups.fetch({
cache: false,
data: {'with_repos': 1}, // list repos of every group
reset: true,
success: function (collection, response, opts) {
},
@@ -104,7 +105,7 @@ define([
return false;
}
Common.disableButton($('[type="submit"]', $form));
groups.create({'group_name': group_name}, {
groups.create({'group_name': group_name, 'repos':[]}, {
wait: true,
validate: true,
prepend: true, // show newly created group at the top