From a105ea35a5579b9e1dcb468eb69953904af204b4 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 23 Mar 2012 08:32:40 +0000 Subject: [PATCH] start adding small comment git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1304226 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/archiva/search.js | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js index 9ae538916..ceedeb10c 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js @@ -265,20 +265,42 @@ $(function() { }) } + /** + * display groupId note #main-content must contains browse-tmpl + * @param groupId + */ generalDisplayGroup=function(groupId) { var parentBrowseViewModel=new BrowseViewModel(null,null,null); displayGroupDetail(groupId,parentBrowseViewModel,null); } + /** + * display groupId/artifactId detail note #main-content must contains browse-tmpl + * @param groupId + * @param artifactId + */ generalDisplayArtifactDetailView=function(groupId, artifactId){ displayArtifactDetail(groupId, artifactId); } + /** + * display groupId/artifactId/version detail note #main-content must contains browse-tmpl + * @param groupId + * @param artifactId + * @param version + */ generalDisplayArtifactVersionDetailViewModel=function(groupId,artifactId,version){ var artifactVersionDetailViewModel = new ArtifactVersionDetailViewModel (groupId,artifactId,version) artifactVersionDetailViewModel.display(); } + /** + * + * @param groupId + * @param artifactId + * @param parentBrowseViewModel + * @param restUrl + */ displayArtifactDetail=function(groupId,artifactId,parentBrowseViewModel,restUrl){ var artifactDetailViewModel=new ArtifactDetailViewModel(groupId,artifactId); var mainContent = $("#main-content"); -- 2.39.5