From: Olivier Lamy Date: Tue, 3 Apr 2012 22:18:21 +0000 (+0000) Subject: fix view of artifact with artifactId containing dot X-Git-Tag: archiva-1.4-M3~844 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=016ae930af8a832632facccad8d514f6eb561cd5;p=archiva.git 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 --- 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