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

30 lines
788 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',
2015-04-03 04:15:41 +00:00
'app/views/add-repo'
], function($, simplemodal, _, Backbone, Common, AddRepoView) {
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 {
2015-09-24 09:20:45 +00:00
showSharePerm: true,
enable_encrypted_library: app.pageOptions.enable_encrypted_library,
library_templates: app.pageOptions.library_templates
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-06-10 05:43:41 +00:00
}
2015-01-22 09:15:17 +00:00
});
return AddGroupRepoView;
});