mirror of https://github.com/apache/archiva.git
fix navigation missing when using crumbentries
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1370531 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b32822204d
commit
fb986eb39f
|
@ -155,8 +155,6 @@ define("archiva.search",["jquery","i18n","jquery.tmpl","choosen","knockout","kno
|
||||||
}
|
}
|
||||||
|
|
||||||
displayArtifactVersionDetail=function(version){
|
displayArtifactVersionDetail=function(version){
|
||||||
//var artifactVersionDetailViewModel=new ArtifactVersionDetailViewModel(self.groupId,self.artifactId,version,getSelectedBrowsingRepository());
|
|
||||||
//artifactVersionDetailViewModel.display();
|
|
||||||
var selectedRepo=getSelectedBrowsingRepository();
|
var selectedRepo=getSelectedBrowsingRepository();
|
||||||
var location ="#artifact";
|
var location ="#artifact";
|
||||||
if (selectedRepo){
|
if (selectedRepo){
|
||||||
|
@ -651,6 +649,17 @@ define("archiva.search",["jquery","i18n","jquery.tmpl","choosen","knockout","kno
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
goToArtifactDetail=function(groupId,artifactId){
|
||||||
|
var selectedRepo=getSelectedBrowsingRepository();
|
||||||
|
var location ="#artifact";
|
||||||
|
if (selectedRepo){
|
||||||
|
location+="~"+selectedRepo;
|
||||||
|
}
|
||||||
|
location+="/"+groupId+"/"+artifactId;
|
||||||
|
|
||||||
|
window.sammyArchivaApplication.setLocation(location);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param groupId
|
* @param groupId
|
||||||
|
@ -1423,7 +1432,6 @@ define("archiva.search",["jquery","i18n","jquery.tmpl","choosen","knockout","kno
|
||||||
location+="/"+artifact.groupId+"/"+artifact.artifactId+"/"+artifact.version;
|
location+="/"+artifact.groupId+"/"+artifact.artifactId+"/"+artifact.version;
|
||||||
|
|
||||||
window.sammyArchivaApplication.setLocation(location);
|
window.sammyArchivaApplication.setLocation(location);
|
||||||
//generalDisplayArtifactDetailsVersionView(artifact.groupId,artifact.artifactId,artifact.version,null);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@
|
||||||
${breadCrumbEntry.displayValue}
|
${breadCrumbEntry.displayValue}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{if breadCrumbEntry.artifact}}
|
{{if breadCrumbEntry.artifact}}
|
||||||
<a href="#" data-bind="click: function(){displayArtifactDetail(breadCrumbEntry.groupId,breadCrumbEntry.artifactId,null,null)}">${breadCrumbEntry.displayValue}</a>
|
<a href="#" data-bind="click: function(){goToArtifactDetail(breadCrumbEntry.groupId,breadCrumbEntry.artifactId)}">${breadCrumbEntry.displayValue}</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
<a href="#" data-bind="click: function(){displayGroupId(breadCrumbEntry.groupId)}">${breadCrumbEntry.displayValue}</a>
|
<a href="#" data-bind="click: function(){displayGroupId(breadCrumbEntry.groupId)}">${breadCrumbEntry.displayValue}</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Reference in New Issue