mirror of
https://github.com/haiwen/seahub.git
synced 2025-06-30 08:53:49 +00:00
27 lines
647 B
JavaScript
27 lines
647 B
JavaScript
define([
|
|
'underscore',
|
|
'backbone',
|
|
'common'
|
|
], function(_, Backbone, Common) {
|
|
'use strict';
|
|
|
|
var Collection = Backbone.Collection.extend({
|
|
|
|
initialize: function(options) {
|
|
this.repo_id = options.repo_id;
|
|
this.is_group_owned_repo = options.is_group_owned_repo;
|
|
},
|
|
|
|
url: function() {
|
|
return Common.getUrl({
|
|
name: this.is_group_owned_repo ?
|
|
'group-owned-library-user-folder-permission' :
|
|
'repo_user_folder_perm',
|
|
repo_id: this.repo_id
|
|
});
|
|
}
|
|
});
|
|
|
|
return Collection;
|
|
});
|