From bd732c9ece2c28e5ea29c5121327ec16ddfcf4c9 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 9 Feb 2012 23:08:43 +0000 Subject: [PATCH] [MRM-1576] rewrite proxies connector page cleanup grid and forms for add. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1242598 13f79535-47bb-0310-9956-ffa450edef68 --- .../webapp/js/archiva/proxy-connectors.js | 124 +++++++----------- .../js/archiva/templates/network-proxies.html | 10 +- .../archiva/templates/proxy-connectors.html | 73 +++++------ .../src/main/webapp/js/archiva/utils.js | 5 +- .../src/main/webapp/js/knockout.simpleGrid.js | 2 +- 5 files changed, 91 insertions(+), 123 deletions(-) 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 348529324..d5f8682a3 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 @@ -87,6 +87,29 @@ $(function() { this.modified=ko.observable(false); this.modified.subscribe(function(newValue){$.log("ProxyConnector modified:"+newValue)}); + + this.policiesEntries=[]; + this.propertiesEntries=[]; + + this.deleteProperty=function(key){ + $.log("delete property key:"+key()); + for(i=0;i0) ? remoteRepository[0]:new RemoteRepository(); } - // return remote repositories proxied for a managed repository - getRemoteRepositories=function(id){ - $.log("getRemoteRepositories:"+id); - var remoteRepositoryIds=$.grep(self.proxyConnectors(), - function(repo,idx){ - return repo.sourceRepoId()==id; - } - ); - $.log("remoteRepositoryIds.length:"+remoteRepositoryIds.length); - var remoteRepositories=[]; - for (i=0;i {{/if}} - ${row.useNtlm()} - + ${row.useNtlm()} + ${$.i18n.prop('edit')} - - + + - + {{if row.modified()}} ${$.i18n.prop('save')} diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/proxy-connectors.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/proxy-connectors.html index 69f2557ef..f5cdf1df9 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/proxy-connectors.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/proxy-connectors.html @@ -42,48 +42,45 @@