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