1
0
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:
llj
2015-09-14 14:41:11 +08:00
3 changed files with 6 additions and 0 deletions

View File

@@ -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');