1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-06-29 08:27:55 +00:00
seahub/static/scripts/app/models/share-admin-upload-link.js

22 lines
530 B
JavaScript
Raw Normal View History

2016-06-30 07:06:43 +00:00
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;
});