From 21cf00c48a2c06c8371c7dd6fb1ba34b86b4b422 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 13 Feb 2012 08:59:17 +0000 Subject: [PATCH] proxy connectors screen bulk save use btn class and add column to save only one git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1243443 13f79535-47bb-0310-9956-ffa450edef68 --- .../webapp/js/archiva/proxy-connectors.js | 5 +++++ .../archiva/templates/proxy-connectors.html | 22 ++++++++++--------- 2 files changed, 17 insertions(+), 10 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 015555e24..3e645aea4 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 @@ -297,6 +297,11 @@ $(function() { $.i18n.prop('proxy.connector.bulk.save.confirm',modifiedProxyConnectors.length)); } + updateProxyConnector=function(proxyConnector){ + var viewModel = new ProxyConnectorViewModel(proxyConnector,true,self,false); + viewModel.save(); + } + editProxyConnector=function(proxyConnector){ var proxyConnectorViewModel=new ProxyConnectorViewModel(proxyConnector,true,self); var mainContent = $("#main-content"); 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 15a9cbb15..eadc3bec6 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 @@ -51,15 +51,10 @@ ${$.i18n.prop('proxy-connectors.grid.remoterepo.grid.header')} - - ${$.i18n.prop('proxy-connectors.grid.remoterepo.settings.popover.title')} - - - ${$.i18n.prop('edit')} - - - ${$.i18n.prop('delete')} - + ${$.i18n.prop('proxy-connectors.grid.remoterepo.settings.popover.title')} + ${$.i18n.prop('edit')} + ${$.i18n.prop('delete')} + ${$.i18n.prop('save')} @@ -82,6 +77,13 @@ + + {{if row.modified()}} + + ${$.i18n.prop('save')} + + {{/if}} + {{/each}} @@ -223,6 +225,6 @@ -- 2.39.5