1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-06-29 00:17:18 +00:00
seahub/static/scripts/app/views/add-group-repo.js

29 lines
712 B
JavaScript
Raw Normal View History

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