mirror of
https://github.com/haiwen/seahub.git
synced 2025-06-30 00:42:53 +00:00
* added feedback for invalid quota input * modified empty tips for group * added 'New Department Library' * [group owned repo] added 'rename', 'set permission', 'details'
31 lines
655 B
JavaScript
31 lines
655 B
JavaScript
define([
|
|
'jquery',
|
|
'simplemodal',
|
|
'underscore',
|
|
'backbone',
|
|
'common',
|
|
'app/views/add-repo'
|
|
], function($, simplemodal, _, Backbone, Common, AddRepoView) {
|
|
'use strict';
|
|
|
|
var View = AddRepoView.extend({
|
|
|
|
template: _.template($('#create-department-repo-tmpl').html()),
|
|
|
|
templateData: function() {
|
|
return {
|
|
};
|
|
},
|
|
|
|
newAttributes: function() {
|
|
return {
|
|
'name': $.trim($('input[name=repo_name]', this.$el).val()),
|
|
'permission': $('select[name=permission]', this.$el).val()
|
|
};
|
|
}
|
|
|
|
});
|
|
|
|
return View;
|
|
});
|