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

Create repo in organization

This commit is contained in:
zhengxie
2015-04-03 17:01:13 +08:00
committed by Daniel Pan
parent d612ec360c
commit 49f26cb251
8 changed files with 160 additions and 9 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 AddPubRepoView = 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 AddPubRepoView;
});