mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-12 13:24:52 +00:00
[lib setting] add 'folder perm'
This commit is contained in:
23
static/scripts/app/collections/repo-user-folder-perm.js
Normal file
23
static/scripts/app/collections/repo-user-folder-perm.js
Normal file
@@ -0,0 +1,23 @@
|
||||
define([
|
||||
'underscore',
|
||||
'backbone',
|
||||
'common'
|
||||
], function(_, Backbone, Common) {
|
||||
'use strict';
|
||||
|
||||
var Collection = Backbone.Collection.extend({
|
||||
|
||||
initialize: function(options) {
|
||||
this.repo_id = options.repo_id;
|
||||
},
|
||||
|
||||
url: function() {
|
||||
return Common.getUrl({
|
||||
name: 'repo_user_folder_perm',
|
||||
repo_id: this.repo_id
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
return Collection;
|
||||
});
|
Reference in New Issue
Block a user