1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 05:39:59 +00:00

[image] use thumbnail for magnificPopups, file_view page & shared_file_view page

This commit is contained in:
llj
2017-04-18 17:28:29 +08:00
parent 4522201366
commit 2a8e40c3c0
13 changed files with 92 additions and 22 deletions

View File

@@ -657,3 +657,12 @@ function quotaSizeFormat(bytes, precision) {
return bytes + ' B';
}
}
function encodePath(path) {
var path_arr = path.split('/'),
path_arr_ = [];
for (var i = 0, len = path_arr.length; i < len; i++) {
path_arr_.push(encodeURIComponent(path_arr[i]));
}
return path_arr_.join('/');
}