]> source.dussan.org Git - archiva.git/commitdiff
fix javascript mapping
authorOlivier Lamy <olamy@apache.org>
Thu, 1 Mar 2012 17:34:04 +0000 (17:34 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 1 Mar 2012 17:34:04 +0000 (17:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1295688 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js

index d1a0fb34871dd0a27edffef47d700e5cc5583c63..3803b1e6cf9ea0b7c881a021f05fd209fa1564ff 100644 (file)
@@ -332,25 +332,25 @@ $(function() {
                                     null,null,null,null,null,null,null,data.incomplete);
 
       if (data.organization){
-        organization=new Organization(data.organization.name,data.organization.url);
+        projectVersionMetadata.organization=new Organization(data.organization.name,data.organization.url);
       }
       if (data.issueManagement){
-        issueManagement=
+        projectVersionMetadata.issueManagement=
             new IssueManagement(data.issueManagement.system,data.issueManagement.url);
       }
       if (data.scm){
-        scm=
+        projectVersionMetadata.scm=
             new Scm(data.scm.connection,data.scm.developerConnection,data.scm.url);
       }
       if (data.ciManagement){
-        ciManagement=new CiManagement(data.ciManagement.system,data.ciManagement.url);
+        projectVersionMetadata.ciManagement=new CiManagement(data.ciManagement.system,data.ciManagement.url);
       }
       if (data.licenses){
         var licenses =
         $.isArray(data.licenses) ? $.map(data.licenses,function(item){
               return new License(item.name,item.url);
           }):[data.licenses];
-        licenses=licenses;
+        projectVersionMetadata.licenses=licenses;
       }
       if (data.mailingLists){
         var mailingLists =
@@ -358,7 +358,7 @@ $(function() {
               return new MailingList(item.mainArchiveUrl,item.otherArchives,item.name,item.postAddress,
                                      item.subscribeAddress,item.unsubscribeAddress);
           }):[data.mailingLists];
-        mailingLists=mailingLists;
+        projectVersionMetadata.mailingLists=mailingLists;
       }
       if (data.dependencies){
         var dependencies =
@@ -366,7 +366,7 @@ $(function() {
               return new Dependency(item.classifier,item.optional,item.scope,item.systemPath,item.type,
                                     item.artifactId,item.groupId,item.version);
           }):[data.dependencies];
-        dependencies=dependencies;
+        projectVersionMetadata.dependencies=dependencies;
       }
       $.log("projectVersionMetadata.issueManagement.system:"+(projectVersionMetadata.issueManagement?projectVersionMetadata.issueManagement.system:"null"));
       return projectVersionMetadata;