From 016ae930af8a832632facccad8d514f6eb561cd5 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 3 Apr 2012 22:18:21 +0000 Subject: [PATCH] fix view of artifact with artifactId containing dot git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1309178 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/archiva/search.js | 37 +++++++++---------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js index 5a2adf3ec..d1daa5737 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js @@ -42,24 +42,23 @@ define("search",["jquery","i18n","jquery.tmpl","choosen","order!knockout","knock } } + breadCrumbEntries=function(){ + // root level ? + if (!self.parentBrowseViewModel) return []; + return calculateBreadCrumbEntries(self.groupId); + } + displayProjectEntry=function(id){ + // value org.apache.maven/maven-archiver + // artifactId can contains . + // value org.apache.aries/org.apache.aries.util // split this org.apache.maven and maven-archiver - var values = id.split("."); - var groupId=""; - for (var i = 0;i