2015-01-22 09:15:17 +00:00
|
|
|
define([
|
|
|
|
'jquery',
|
2015-03-01 12:28:25 +00:00
|
|
|
'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';
|
|
|
|
|
2015-03-19 08:06:20 +00:00
|
|
|
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,
|
2015-10-09 07:40:54 +00:00
|
|
|
enable_encrypted_library: app.pageOptions.enable_encrypted_library
|
2015-01-22 09:15:17 +00:00
|
|
|
};
|
|
|
|
},
|
|
|
|
|
2015-03-19 08:06:20 +00:00
|
|
|
newAttributes: function() {
|
|
|
|
var baseAttrs = AddRepoView.prototype.newAttributes.apply(this);
|
2015-01-22 09:15:17 +00:00
|
|
|
|
2015-04-02 10:51:48 +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;
|
|
|
|
});
|