Commit d93e3f559cc8b8b59f8269b816c40ac37bb11f3e
1 parent
c4fe127d
Exists in
master
and in
81 other branches
us ok
Showing
1 changed file
with
13 additions
and
1 deletions
Show diff stats
js/app/views/CatalogUI.js
... | ... | @@ -482,7 +482,19 @@ Ext.define('amdaUI.CatalogUI', { |
482 | 482 | xtype: 'gridcolumn', |
483 | 483 | width: pramColumnWidth * parseInt(obj.size), |
484 | 484 | editor: 'textfield', |
485 | - filter: {type: 'string'} | |
485 | + renderer :function(value){ | |
486 | + if(value.startsWith("www") ||value.startsWith("WWW")) { | |
487 | + myURL = '<a href="http://' + value + '" target="_blank">' + value +'</a>'; | |
488 | + }else if(value.startsWith("http") ||value.startsWith("HTTP")){ | |
489 | + myURL = '<a href=' + value + ' target="_blank">' + value +'</a>'; | |
490 | + }else if(value.endsWith(".com") || value.endsWith(".fr") || value.endsWith(".org") || value.endsWith(".eu") ){ | |
491 | + myURL = '<a href="http://www.' + value + '" target=_blank">' + value +'</a>'; | |
492 | + }else{ | |
493 | + myURL = value; | |
494 | + } | |
495 | + return myURL; | |
496 | + }, | |
497 | + filter: {type: 'string'} | |
486 | 498 | }); |
487 | 499 | break; |
488 | 500 | case 3: //int |
... | ... |