From 8099fd94c5f59f2e0ec94d24783ec841123d710e Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 10 Feb 2012 17:23:36 +0000 Subject: [PATCH] [MRM-1576] rewrite proxies connector page add edition too. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1242861 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/archiva/i18n/default.properties | 1 + .../webapp/js/archiva/proxy-connectors.js | 81 +++++++++++++------ .../archiva/templates/proxy-connectors.html | 6 +- 3 files changed, 57 insertions(+), 31 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 3dc72f980..943441cf7 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 @@ -138,6 +138,7 @@ proxy-connector.blacklist=Black List proxy-connector.whitelist=White List proxyconnector.removed=ProxyConnector removed. proxyconnector.added=ProxyConnector added. +proxyconnector.updated=ProxyConnector updated. proxy-connectors.grid.remoterepo.settings.popover.title=Proxy Connector Settings proxy-connectors.remoterepo.settings.networkproxy=Network Proxy diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js index 6b0f89ffe..523e9fd96 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js @@ -138,6 +138,7 @@ $(function() { this.proxyConnectorsViewModel=proxyConnectorsViewModel; this.update=update; this.modified=ko.observable(false); + getSelectedPolicyOption=function(id){ $.log("getSelectedPolicyOption:"+id); @@ -145,8 +146,9 @@ $(function() { $.log("getSelectedPolicyOption policies.length:"+policiesEntries.length); if (policiesEntries!=null){ for (i=0;i ${entry.key} - {{if $.isFunction( entry.value ) }} - function=====${entry.value()} - {{else}} - ${entry.value} - {{/if}} + ${entry.value} {{/each}} -- 2.39.5