archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1302698 - in /archiva/trunk/archiva-modules/archiva-web: archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties archiva-webapp-js/src/main/webapp/js/archiva/search.js
Date Mon, 19 Mar 2012 22:46:29 GMT
Author: olamy
Date: Mon Mar 19 22:46:29 2012
New Revision: 1302698

URL: http://svn.apache.org/viewvc?rev=1302698&view=rev
Log:
i18n

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

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties?rev=1302698&r1=1302697&r2=1302698&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties
Mon Mar 19 22:46:29 2012
@@ -252,6 +252,13 @@ search.artifact.search.form.query.bundle
 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

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js?rev=1302698&r1=1302697&r2=1302698&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js
Mon Mar 19 22:46:29 2012
@@ -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");
+              }
+
+            });
+          }
+        });
+
       });
     }
   }



Mime
View raw message