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

add public repo

This commit is contained in:
lian
2015-05-14 11:28:12 +08:00
parent f68769fb48
commit 903b29aea4
9 changed files with 206 additions and 14 deletions

View File

@@ -0,0 +1,27 @@
define([
'jquery',
'simplemodal',
'underscore',
'backbone',
'common',
'app/views/add-repo'
], function($, simplemodal, _, Backbone, Common, AddRepoView) {
'use strict';
var CreatePubRepoView = AddRepoView.extend({
templateData: function() {
return {
showSharePerm: true
};
},
newAttributes: function() {
var baseAttrs = AddRepoView.prototype.newAttributes.apply(this);
return _.extend(baseAttrs, {'permission': $('select[name=permission]', this.$el).val()});
},
});
return CreatePubRepoView;
});