1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-02 18:03:51 +00:00
seahub/static/scripts/app/views/add-department-repo.js

31 lines
655 B
JavaScript
Raw Normal View History

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