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

Enable create repo at myhome and group pages

This commit is contained in:
zhengxie
2015-03-19 16:06:20 +08:00
committed by Daniel Pan
parent 27aa7e79d3
commit 1721c06ff4
10 changed files with 46 additions and 73 deletions

View File

@@ -1,23 +1,17 @@
define([
'underscore',
'backbone'
], function(_, Backbone) {
'backbone',
'app/models/repo'
], function(_, Backbone, Repo) {
'use strict';
var GroupRepo = Backbone.Model.extend({
var GroupRepo = Repo.extend({
defaults: {
id: null,
name: "",
desc: "",
mtime: 0,
encrypted: false,
permission: "r",
owner: "-",
owner_nickname: "-"
}
});
_.extend(GroupRepo.prototype.defaults, Repo.prototype.defaults);
return GroupRepo;
});