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:
@@ -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('/');
|
||||
}
|
||||
|
Reference in New Issue
Block a user