1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00

[dist] Update

This commit is contained in:
zhengxie
2015-05-27 14:36:26 +08:00
parent 30762eaf5a
commit 7f8e7f15fe
27 changed files with 544 additions and 248 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;
});