mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
Merge pull request #808 from haiwen/thumbnail-fix
bugfix for 'get image thumbnail'
This commit is contained in:
@@ -191,6 +191,10 @@ define([
|
||||
},
|
||||
|
||||
getImageThumbnail: function() {
|
||||
if (!app.pageOptions.enable_thumbnail || this.dir.encrypted) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var images_with_no_thumbnail = this.dir.filter(function(dirent) {
|
||||
// 'dirent' is a model
|
||||
return dirent.get('is_img') && !dirent.get('encoded_thumbnail_src');
|
||||
|
Reference in New Issue
Block a user