1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 00:00:00 +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

@@ -32,6 +32,16 @@ define([
var tmpl = $(window).width() >= 768 ? this.template : this.mobileTemplate;
this.$el.html(tmpl(data));
if (app.pageOptions.enable_thumbnail) {
this.$('.img-name-link').attr('data-mfp-src', Common.getUrl({
'name': 'thumbnail_get',
'repo_id': data.repo_id,
'size': 1024,
'path': data.encoded_path
}));
}
return this;
},