Skip to content

Commit

Permalink
[cmd:info] not show link when url is NULL, for virtual holder volume
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Jan 9, 2014
1 parent 5795a95 commit 7f68bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/commands/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ elFinder.prototype.commands.info = function() {
content.push(row.replace(l, msg.size).replace(v, size));
file.alias && content.push(row.replace(l, msg.aliasfor).replace(v, file.alias));
content.push(row.replace(l, msg.path).replace(v, fm.escape(fm.path(file.hash, true))));
file.read && content.push(row.replace(l, msg.link).replace(v, '<a href="'+fm.url(file.hash)+'" target="_blank">'+file.name+'</a>'));
file.read && (typeof file.url == 'undefined' || file.url != null) && content.push(row.replace(l, msg.link).replace(v, '<a href="'+fm.url(file.hash)+'" target="_blank">'+file.name+'</a>'));

if (file.dim) { // old api
content.push(row.replace(l, msg.dim).replace(v, file.dim));
Expand Down

0 comments on commit 7f68bd4

Please sign in to comment.