diff --git a/js/app/views/CatalogUI.js b/js/app/views/CatalogUI.js index f938412..bc7e329 100644 --- a/js/app/views/CatalogUI.js +++ b/js/app/views/CatalogUI.js @@ -482,7 +482,19 @@ Ext.define('amdaUI.CatalogUI', { xtype: 'gridcolumn', width: pramColumnWidth * parseInt(obj.size), editor: 'textfield', - filter: {type: 'string'} + renderer :function(value){ + if(value.startsWith("www") ||value.startsWith("WWW")) { + myURL = '<a href="http://' + value + '" target="_blank">' + value +'</a>'; + }else if(value.startsWith("http") ||value.startsWith("HTTP")){ + myURL = '<a href=' + value + ' target="_blank">' + value +'</a>'; + }else if(value.endsWith(".com") || value.endsWith(".fr") || value.endsWith(".org") || value.endsWith(".eu") ){ + myURL = '<a href="http://www.' + value + '" target=_blank">' + value +'</a>'; + }else{ + myURL = value; + } + return myURL; + }, + filter: {type: 'string'} }); break; case 3: //int -- libgit2 0.21.2