From: Olivier Lamy Date: Wed, 8 Feb 2012 17:44:06 +0000 (+0000) Subject: [MRM-1576] rewrite proxies connector page X-Git-Tag: archiva-1.4-M3~1349 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4a2a5036bdb03aa4c472f0247fca2e83f5333aaa;p=archiva.git [MRM-1576] rewrite proxies connector page fix selection of defaultOption in add mode as no policies exists. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1242006 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 2c05664f5..2b3f5e401 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 @@ -101,10 +101,21 @@ $(function() { this.proxyConnectorsViewModel=proxyConnectorsViewModel; this.update=update; getSelectedPolicyOption=function(id){ + if (!update){ + // we are on add mode so use default option + var policyInformations=self.proxyConnectorsViewModel.policyInformations(); + for (i=0;i