Commits

Sebastian Sdorra committed 52644b5

icons of repository browser should be clickable

Comments (0)

Files changed (1)

scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.repositorybrowser.js

     return link;
   },
   
-  renderName: function(name, p, record){
+  renderLink: function(text, record){
     var subRepository = record.get('subrepository');
     var folder = record.get('directory');
     var path = null;
       template = this.templateInternalLink;
     }
     
-    return String.format(template, name, path);
+    return String.format(template, text, path);    
+  },
+  
+  renderName: function(name, p, record){
+    return this.renderLink(name, record);
   },
   
   renderIcon: function(directory, p, record){
     } else {
       icon = this.iconDocument;
     }
-    return String.format(this.templateIcon, icon, name, name);
+    var img = String.format(this.templateIcon, icon, name, name);
+    return this.renderLink(img, record)
   },
   
   renderLength: function(length, p, record){