From b7e02ed3e29f8d843641cfeda6e76d5f1f27eef4 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 9 Feb 2012 23:07:15 +0000 Subject: [PATCH] [MRM-1576] rewrite proxies connector page add now works ! git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1242593 13f79535-47bb-0310-9956-ffa450edef68 --- .../webapp/js/archiva/proxy-connectors.js | 81 +++++++++++++++---- .../archiva/templates/proxy-connectors.html | 10 ++- 2 files changed, 74 insertions(+), 17 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 ec12e6832..b8dc2f919 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 @@ -127,22 +127,15 @@ $(function() { this.proxyConnectorsViewModel=proxyConnectorsViewModel; this.update=update; this.modified=ko.observable(false); - getSelectedPolicyOption=function(id,updateVal){ - $.log("getSelectedPolicyOption:"+id+","+updateVal); - if (!update){ - // we are on add mode so use default option - var policyInformations=self.proxyConnectorsViewModel.policyInformations(); - for (i=0;i - + @@ -203,6 +202,13 @@ + + + {{if modified()}} + ${("#network-proxy-btn-save").button('reset')} + {{/if}} + + -- 2.39.5