From d93e3f559cc8b8b59f8269b816c40ac37bb11f3e Mon Sep 17 00:00:00 2001
From: Hacene SI HADJ MOHAND <hacene.si-hadj-mohand@akka.eu>
Date: Tue, 1 Jun 2021 02:29:05 +0200
Subject: [PATCH] us ok

---
 js/app/views/CatalogUI.js | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

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