mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 23:29:49 +00:00
[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'
This commit is contained in:
30
static/scripts/app/views/add-department-repo.js
Normal file
30
static/scripts/app/views/add-department-repo.js
Normal file
@@ -0,0 +1,30 @@
|
||||
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;
|
||||
});
|
Reference in New Issue
Block a user