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:
@@ -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;
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user