1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-06-30 00:42:53 +00:00
seahub/static/scripts/app/views/add-department-repo.js
llj 8bf23d9e88 [address book] added 'rename', 'set perm', 'details' for group owned library, and etc.
* added feedback for invalid quota input
    * modified empty tips for group
    * added 'New Department Library'
    * [group owned repo] added 'rename', 'set permission', 'details'
2018-05-18 12:12:01 +08:00

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;
});