1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

Move scripts from media to static folder

This commit is contained in:
zhengxie
2015-04-03 11:02:11 +08:00
committed by Daniel Pan
parent 62fe930d3a
commit f022b4902e
62 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
define([
'jquery',
'simplemodal',
'underscore',
'backbone',
'common',
'app/views/add-repo',
'text!' + app.config._tmplRoot + 'create-repo.html'
], function($, simplemodal, _, Backbone, Common, AddRepoView, CreateRepoTemplate) {
'use strict';
var AddGroupRepoView = 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 AddGroupRepoView;
});