From: Olivier Lamy Date: Thu, 9 Feb 2012 23:08:43 +0000 (+0000) Subject: [MRM-1576] rewrite proxies connector page X-Git-Tag: archiva-1.4-M3~1337 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bd732c9ece2c28e5ea29c5121327ec16ddfcf4c9;p=archiva.git [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 --- 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 @@