mirror of https://github.com/apache/archiva.git
link to go from results view to details groupId, artifact or artifactDetails
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1304364 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8df34f305e
commit
c51bba95bb
|
@ -1025,6 +1025,34 @@ $(function() {
|
||||||
applyAutocompleteOnHeader('classifier',self);
|
applyAutocompleteOnHeader('classifier',self);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
groupIdView=function(artifact){
|
||||||
|
$.log("groupIdView:"+artifact.groupId);
|
||||||
|
displayBrowseGroupId(artifact.groupId);
|
||||||
|
}
|
||||||
|
artifactIdView=function(artifact){
|
||||||
|
$.log("artifactIdView:"+artifact.groupId);
|
||||||
|
displayBrowseArtifactDetail(artifact.groupId,artifact.artifactId,null,null);
|
||||||
|
}
|
||||||
|
artifactDetailView=function(artifact){
|
||||||
|
$.log("artifactDetailView:"+artifact.groupId);
|
||||||
|
var mainContent=$("#main-content");
|
||||||
|
mainContent.html($("#browse-tmpl" ).tmpl());
|
||||||
|
mainContent.find("#browse_result" ).hide();
|
||||||
|
mainContent.find("#browse_artifact_detail").show();
|
||||||
|
mainContent.find("#browse_artifact_detail").html(mediumSpinnerImg());
|
||||||
|
mainContent.find("#browse_breadcrumb" ).show();
|
||||||
|
mainContent.find("#browse_breadcrumb" ).html(mediumSpinnerImg());
|
||||||
|
$.ajax("restServices/archivaServices/browseService/userRepositories", {
|
||||||
|
type: "GET",
|
||||||
|
dataType: 'json',
|
||||||
|
success: function(data) {
|
||||||
|
mainContent.find("#selected_repository" ).html($("#selected_repository_tmpl" ).tmpl({repositories:data,selected:null}));
|
||||||
|
var artifactVersionDetailViewModel=new ArtifactVersionDetailViewModel(artifact.groupId,artifact.artifactId,artifact.version);
|
||||||
|
artifactVersionDetailViewModel.display(true);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -398,9 +398,9 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{{each(i, row) itemsOnCurrentPage()}}
|
{{each(i, row) itemsOnCurrentPage()}}
|
||||||
<tr>
|
<tr>
|
||||||
<td>${row.groupId}</td>
|
<td><a href="#" data-bind="click: function(){groupIdView(row)}">${row.groupId}</a></td>
|
||||||
<td>${row.artifactId}</td>
|
<td><a href="#" data-bind="click: function(){artifactIdView(row)}">${row.artifactId}</a></td>
|
||||||
<td>${row.version}</td>
|
<td><a href="#" data-bind="click: function(){artifactDetailView(row)}">${row.version}</a></td>
|
||||||
<td>${row.classifier}</td>
|
<td>${row.classifier}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|
Loading…
Reference in New Issue