mirror of
https://github.com/haiwen/seahub.git
synced 2025-06-29 08:27:55 +00:00
22 lines
530 B
JavaScript
22 lines
530 B
JavaScript
|
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;
|
||
|
});
|