mirror of
https://github.com/haiwen/seahub.git
synced 2025-06-28 16:08:25 +00:00
29 lines
718 B
JavaScript
29 lines
718 B
JavaScript
define([
|
|
'jquery',
|
|
'simplemodal',
|
|
'underscore',
|
|
'backbone',
|
|
'common',
|
|
'app/views/add-repo'
|
|
], function($, simplemodal, _, Backbone, Common, AddRepoView) {
|
|
'use strict';
|
|
|
|
var AddGroupRepoView = AddRepoView.extend({
|
|
templateData: function() {
|
|
return {
|
|
showSharePerm: true,
|
|
enable_encrypted_library: app.pageOptions.enable_encrypted_library
|
|
};
|
|
},
|
|
|
|
newAttributes: function() {
|
|
var baseAttrs = AddRepoView.prototype.newAttributes.apply(this);
|
|
|
|
return _.extend(baseAttrs, {'permission': $('select[name=permission]', this.$el).val()});
|
|
}
|
|
|
|
});
|
|
|
|
return AddGroupRepoView;
|
|
});
|