1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-12 12:22:13 +00:00
seahub/media/assets/scripts/app/views/create-pub-repo.js

28 lines
636 B
JavaScript
Raw Normal View History

define([
'jquery',
'simplemodal',
'underscore',
'backbone',
'common',
'app/views/add-repo'
], function($, simplemodal, _, Backbone, Common, AddRepoView) {
'use strict';
2015-05-27 06:36:26 +00:00
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()});
2015-06-18 03:57:48 +00:00
}
});
2015-05-27 06:36:26 +00:00
return CreatePubRepoView;
});