mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 07:27:04 +00:00
new share admin page (#1233)
This commit is contained in:
21
static/scripts/app/models/share-admin-upload-link.js
Normal file
21
static/scripts/app/models/share-admin-upload-link.js
Normal file
@@ -0,0 +1,21 @@
|
||||
define([
|
||||
'underscore',
|
||||
'backbone',
|
||||
'common'
|
||||
], function(_, Backbone, Common) {
|
||||
'use strict';
|
||||
|
||||
var ShareAdminUploadLink = Backbone.Model.extend({
|
||||
getIconUrl: function(size) {
|
||||
return Common.getDirIconUrl(false , size);
|
||||
},
|
||||
|
||||
getWebUrl: function() {
|
||||
var repo_id = this.get('repo_id');
|
||||
var dirent_path = this.get('path');
|
||||
return "#common/lib/" + repo_id + Common.encodePath(dirent_path);
|
||||
}
|
||||
});
|
||||
|
||||
return ShareAdminUploadLink;
|
||||
});
|
Reference in New Issue
Block a user