Skip to content

Commit

Permalink
[js:core] Fix: thumbnails not displayed with newAPI (#2283)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcable authored and nao-pon committed Nov 16, 2017
1 parent eac2827 commit 128d430
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/elFinder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,9 @@ var elFinder = function(node, opts, bootCallback) {
cls += ' elfinder-cwd-bgself';
} else if ((self.oldAPI || tmbUrl) && file && file.tmb && file.tmb != 1) {
url = tmbUrl + file.tmb;
}
} else if (self.newAPI && file && file.tmb && file.tmb != 1) {
url = file.tmb;
}
if (url) {
if (file.ts) {
url += (url.match(/\?/)? '&' : '?') + '_t=' + file.ts;
Expand Down

0 comments on commit 128d430

Please sign in to comment.