]> source.dussan.org Git - archiva.git/commitdiff
i18n
authorOlivier Lamy <olamy@apache.org>
Mon, 19 Mar 2012 22:46:29 +0000 (22:46 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 19 Mar 2012 22:46:29 +0000 (22:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1302698 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js

index 5b6e31dda470a8186cb7c27f80e9819fa8717607..e98961f83faa9d1cf87253b70bdd5b59a2c682ab 100644 (file)
@@ -252,6 +252,13 @@ search.artifact.search.form.query.bundleExportPackage=Export Package
 search.artifact.search.form.query.bundleExportService=Export Service
 search.artifact.search.form.query.bundleImportPackage=Import Package
 search.artifact.search.form.query.bundleRequireBundle=Require Bundle
+artifact.detail.tab.header.dependencies=Dependencies
+artifact.detail.tab.header.metadatas=Metadata
+artifact.detail.tab.header.mailing.list=Mailing Lists
+artifact.detail.tab.header.info=Info
+artifact.detail.tab.header.dependency.tree=Dependency Tree
+artifact.detail.tab.header.used.by=Used By
+browse.artifact.version=Version
 
 #login
 login.username.placehoder=Username
index 3968e3c64c75001f91d686e269e4a2b198d3d060..bbdddbcc30f6c25bcb853db53ceecaedf8d29a15 100644 (file)
@@ -162,19 +162,25 @@ $(function() {
         if (selectedRepo){
           metadataUrl+="?repositoryId="+encodeURIComponent(selectedRepo);
         }
-        if (self.artifactDetailViewModel && self.artifactDetailViewModel.projectVersionMetadata){
-          self.projectVersionMetadata=self.artifactDetailViewModel.projectVersionMetadata;
-          ko.applyBindings(self,mainContent.find("#browse_artifact_detail" ).get(0));
-        } else {
-          $.ajax(metadataUrl, {
-            type: "GET",
-            dataType: 'json',
-            success: function(data) {
-              self.projectVersionMetadata=mapProjectVersionMetadata(data);
-              ko.applyBindings(self,mainContent.find("#browse_artifact_detail" ).get(0));
-            }
-          });
-        }
+
+        $.ajax(metadataUrl, {
+          type: "GET",
+          dataType: 'json',
+          success: function(data) {
+            self.projectVersionMetadata=mapProjectVersionMetadata(data);
+            ko.applyBindings(self,mainContent.find("#browse_artifact_detail" ).get(0));
+            mainContent.find("#artifact-details-tabs").on('show', function (e) {
+              if ($(e.target).attr("href")=="#artifact-details-dependency-tree-content") {
+                $.log("#artifact-details-dependency-tree-content");
+              }
+              if ($(e.target).attr("href")=="#artifact-details-used-by-content") {
+                $.log("#artifact-details-used-by-content");
+              }
+
+            });
+          }
+        });
+
       });
     }
   }