From 72ea4c00c763ac0e66d2760fc6a44fb16f98441f Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 19 Mar 2012 22:46:29 +0000 Subject: [PATCH] i18n git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1302698 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/archiva/i18n/default.properties | 7 ++++ .../src/main/webapp/js/archiva/search.js | 32 +++++++++++-------- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties b/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties index 5b6e31dda..e98961f83 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties @@ -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 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 3968e3c64..bbdddbcc3 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 @@ -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"); + } + + }); + } + }); + }); } } -- 2.39.5