From e56582fb8ff7dd82235f36bbd4eb8119c1d8bb10 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 10 Feb 2012 17:24:11 +0000 Subject: [PATCH] [MRM-1576] rewrite proxies connector page fix update of properties. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1242863 13f79535-47bb-0310-9956-ffa450edef68 --- .../model/AbstractRepositoryConnector.java | 2 +- .../webapp/js/archiva/proxy-connectors.js | 44 ++++++++++--------- .../archiva/templates/proxy-connectors.html | 4 +- 3 files changed, 26 insertions(+), 24 deletions(-) diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/AbstractRepositoryConnector.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/AbstractRepositoryConnector.java index 4efc1a818..f6afff08c 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/AbstractRepositoryConnector.java +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/AbstractRepositoryConnector.java @@ -393,7 +393,7 @@ public abstract class AbstractRepositoryConnector public void setPropertiesEntries( List propertiesEntries ) { - for ( PropertyEntry propertyEntry : policiesEntries ) + for ( PropertyEntry propertyEntry : propertiesEntries ) { addProperty( propertyEntry.getKey(), propertyEntry.getValue() ); } 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 bde340acb..ae0c71d3c 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 @@ -88,27 +88,6 @@ $(function() { this.modified=ko.observable(false); this.modified.subscribe(function(newValue){$.log("ProxyConnector modified:"+newValue)}); - - this.deleteProperty=function(key){ - $.log("delete property key:"+key()); - for(i=0;i - ${$.i18n.prop('add')} + ${$.i18n.prop('add')} - ${$.i18n.prop('delete')} + ${$.i18n.prop('delete')} -- 2.39.5