From 1a9f55d9c48a1901fe73f59748f386609c3d379b Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 16 Oct 2012 22:05:00 +0000 Subject: [PATCH] fix add proxyConnector rule git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1399018 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/archiva/proxy-connectors-rules.js | 1 + .../main/webapp/js/templates/archiva/repositories.html | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors-rules.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors-rules.js index 5ef25a11c..615134e69 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors-rules.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors-rules.js @@ -232,6 +232,7 @@ define("archiva.proxy-connectors-rules",["jquery","i18n","jquery.tmpl","bootstra //private String sourceRepoId; this.pattern=ko.observable(pattern); this.pattern.subscribe(function(newValue){ + $.log("pattern modified"); self.modified(true); }); diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/repositories.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/repositories.html index 0496ff34e..00a35dc78 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/repositories.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/repositories.html @@ -1419,9 +1419,9 @@ {{/if}} - {{if proxyConnectorRule.modified()}} -
- {{if update}} + +
+ {{if update && proxyConnectorRule.modified()}} ${$.i18n.prop('update')} {{else}} @@ -1431,7 +1431,7 @@

- {{/if}} +