mirror of https://github.com/apache/archiva.git
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:
parent
251d22e04f
commit
2a166a799b
|
@ -80,8 +80,17 @@ $(function() {
|
||||||
if (browse){
|
if (browse){
|
||||||
displayBrowseGroupId(browse);
|
displayBrowseGroupId(browse);
|
||||||
return;
|
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');
|
var screen = $.urlParam('screen');
|
||||||
|
|
|
@ -311,6 +311,10 @@ $(function() {
|
||||||
displayGroupDetail(groupId,parentBrowseViewModel,null);
|
displayGroupDetail(groupId,parentBrowseViewModel,null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
displayBrowseArtifactDetail=function(groupId, artifactId){
|
||||||
|
displayBrowseGroupId(groupId);
|
||||||
|
displayArtifactDetail(groupId,artifactId,null,null);
|
||||||
|
}
|
||||||
|
|
||||||
mapbrowseResultEntries=function(data){
|
mapbrowseResultEntries=function(data){
|
||||||
$.log("mapbrowseResultEntries");
|
$.log("mapbrowseResultEntries");
|
||||||
|
|
Loading…
Reference in New Issue