1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-06-30 08:53:49 +00:00
seahub/media/scripts/app/views/add-group-repo.js

29 lines
696 B
JavaScript

define([
'jquery',
'simplemodal',
'underscore',
'backbone',
'common',
'app/views/add-repo',
'text!' + app.config._tmplRoot + 'create-repo.html'
], function($, simplemodal, _, Backbone, Common, AddRepoView, CreateRepoTemplate) {
'use strict';
var AddGroupRepoView = AddRepoView.extend({
templateData: function() {
return {
showSharePerm: true
};
},
newAttributes: function() {
var baseAttrs = AddRepoView.prototype.newAttributes.apply(this);
return _.extend(baseAttrs, $('select[name=permission]', this.$el).val());
},
});
return AddGroupRepoView;
});