Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
[gui.ajax] InfoPanel : display node label instead of basename if set.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Dec 6, 2015
1 parent 02671f0 commit 8477c10
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -431,6 +431,9 @@ Class.create("InfoPanel", AjxpPane, {
tAttributes.each(function(attName){
if(attName == 'basename' && metadata.get('filename')){
this[attName] = getBaseName(metadata.get('filename'));
if(metadata.get('text')){
this[attName] = metadata.get('text');
}
} else if(attName == 'compute_image_dimensions'){
if(metadata.get('image_width') && metadata.get('image_height')){
var width = metadata.get('image_width');
Expand Down

0 comments on commit 8477c10

Please sign in to comment.