From 2ead257bdb7697bd1d6261ce71af4e3385cdbf63 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 10 Feb 2012 17:24:46 +0000 Subject: [PATCH] [MRM-1576] rewrite proxies connector page implements bulk save mode. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1242865 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/archiva/i18n/default.properties | 1 + .../webapp/js/archiva/proxy-connectors.js | 40 +++++++++++++++++-- .../archiva/templates/proxy-connectors.html | 6 +++ 3 files changed, 44 insertions(+), 3 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties b/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties index 943441cf7..06156c7a5 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties @@ -141,4 +141,5 @@ proxyconnector.added=ProxyConnector added. proxyconnector.updated=ProxyConnector updated. proxy-connectors.grid.remoterepo.settings.popover.title=Proxy Connector Settings proxy-connectors.remoterepo.settings.networkproxy=Network Proxy +proxy.connector.bulk.save.confirm=Are you sure to update {0} Proxy Connector(s) 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 e1aa9fd3d..42ff63b80 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 @@ -92,6 +92,7 @@ $(function() { for(i=0;i0; + } + + getModifiedProxyConnectors=function(){ + var prx = $.grep(self.proxyConnectors(), + function (proxyConnector,i) { + return proxyConnector.modified(); + }); + return prx; + } + + updateModifiedProxyConnectors=function(){ + var modifiedProxyConnectors = getModifiedProxyConnectors(); + + openDialogConfirm(function(){ + for(i=0;i
+
@@ -219,3 +220,8 @@ + -- 2.39.5