shorcut with url query param to go to artifact view

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1301519 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-03-16 14:00:43 +00:00
parent 251d22e04f
commit 2a166a799b
2 changed files with 15 additions and 2 deletions

View File

@ -80,8 +80,17 @@ $(function() {
if (browse){
displayBrowseGroupId(browse);
return;
}else{
$.log("no browse");
}
var artifact= $.urlParam("artifact");
// format groupId:artifactId org.apache.maven.plugins:maven-jar-plugin
//
if (artifact){
if ( artifact.indexOf(':')>=0){
var splitted = artifact.split(':');
displayBrowseArtifactDetail(splitted[0],splitted[1],null,null);
return;
}
}
var screen = $.urlParam('screen');

View File

@ -311,6 +311,10 @@ $(function() {
displayGroupDetail(groupId,parentBrowseViewModel,null);
}
displayBrowseArtifactDetail=function(groupId, artifactId){
displayBrowseGroupId(groupId);
displayArtifactDetail(groupId,artifactId,null,null);
}
mapbrowseResultEntries=function(data){
$.log("mapbrowseResultEntries");