use a more generic name

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1304225 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-03-23 08:32:25 +00:00
parent d7ce7ac86e
commit 9dd6b36861
2 changed files with 6 additions and 6 deletions

View File

@ -265,16 +265,16 @@ $(function() {
}) })
} }
dependencyTreeDisplayGroup=function(groupId) { generalDisplayGroup=function(groupId) {
var parentBrowseViewModel=new BrowseViewModel(null,null,null); var parentBrowseViewModel=new BrowseViewModel(null,null,null);
displayGroupDetail(groupId,parentBrowseViewModel,null); displayGroupDetail(groupId,parentBrowseViewModel,null);
} }
dependencyTreeDisplayArtifactDetailView=function(groupId, artifactId){ generalDisplayArtifactDetailView=function(groupId, artifactId){
displayArtifactDetail(groupId, artifactId); displayArtifactDetail(groupId, artifactId);
} }
dependencyTreeDisplayArtifactVersionDetailViewModel=function(groupId,artifactId,version){ generalDisplayArtifactVersionDetailViewModel=function(groupId,artifactId,version){
var artifactVersionDetailViewModel = new ArtifactVersionDetailViewModel (groupId,artifactId,version) var artifactVersionDetailViewModel = new ArtifactVersionDetailViewModel (groupId,artifactId,version)
artifactVersionDetailViewModel.display(); artifactVersionDetailViewModel.display();
} }

View File

@ -682,12 +682,12 @@
{{var entries=treeEntry.artifact.crumbEntries()}} {{var entries=treeEntry.artifact.crumbEntries()}}
{{each(j,crumbEntry) entries}} {{each(j,crumbEntry) entries}}
{{if j < entries.length - 2}} {{if j < entries.length - 2}}
<a href="#" onclick="dependencyTreeDisplayGroup(encodeURIComponent('${crumbEntry.groupId}'))">${crumbEntry.displayValue}</a> <a href="#" onclick="generalDisplayGroup(encodeURIComponent('${crumbEntry.groupId}'))">${crumbEntry.displayValue}</a>
{{else j == entries.length - 2}} {{else j == entries.length - 2}}
<a href="#" onclick="dependencyTreeDisplayArtifactDetailView(encodeURIComponent('${crumbEntry.groupId}'),encodeURIComponent('${crumbEntry.artifactId}'))">${crumbEntry.displayValue}</a> <a href="#" onclick="generalDisplayArtifactDetailView(encodeURIComponent('${crumbEntry.groupId}'),encodeURIComponent('${crumbEntry.artifactId}'))">${crumbEntry.displayValue}</a>
{{else j == entries.length - 1}} {{else j == entries.length - 1}}
&nbsp;|&nbsp;<b>${$.i18n.prop('browse.artifact.version')}:</b>&nbsp; &nbsp;|&nbsp;<b>${$.i18n.prop('browse.artifact.version')}:</b>&nbsp;
<a href="#" onclick="dependencyTreeDisplayArtifactVersionDetailViewModel(encodeURIComponent('${crumbEntry.groupId}'),encodeURIComponent('${crumbEntry.artifactId}'),encodeURIComponent('${crumbEntry.version}'))">${crumbEntry.version}</a>&nbsp; <a href="#" onclick="generalDisplayArtifactVersionDetailViewModel(encodeURIComponent('${crumbEntry.groupId}'),encodeURIComponent('${crumbEntry.artifactId}'),encodeURIComponent('${crumbEntry.version}'))">${crumbEntry.version}</a>&nbsp;
{{/if}} {{/if}}
{{if j < entries.length - 2}} {{if j < entries.length - 2}}
&nbsp;/&nbsp; &nbsp;/&nbsp;