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:
@@ -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;
|
||||
});
|
||||
|
Reference in New Issue
Block a user