]> source.dussan.org Git - archiva.git/commitdiff
fix i18n for network proxy update
authorOlivier Lamy <olamy@apache.org>
Tue, 31 Jan 2012 14:41:14 +0000 (14:41 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 31 Jan 2012 14:41:14 +0000 (14:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1238623 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/network-proxies.js

index e9ad903c358fc9a89e8d1aa621ea173c4c330adc..53f74cb5296be8746c5a311ccc6e4fd00bb0e4d1 100644 (file)
@@ -35,6 +35,7 @@ save=Save
 identifier=Id
 url=Url
 directory=Directory
+save.all=Save all
 
 
 administration.repositories=Repositories Administration
@@ -93,7 +94,7 @@ proxy-connectors.grid.remoterepo.settings.popover.title=Settings
 proxy-connectors.remoterepo.settings.networkproxy=Network Proxy
 
 #network proxy
-networkproxy.updated=Network Proxy '{0}' updated.
+networkproxy.updated=Network Proxy " {0} " updated.
 network-proxies.grid.tab.title=Network Proxies
 network-proxies.list=Network Proxies
 
index 893fdf1475c218ad7cb809e18c9bf4ecc66661b0..367d20eeefab02456e0833b890bcde4f51e341c9 100644 (file)
@@ -70,7 +70,9 @@ $(function() {
             data: "{\"networkProxy\": " + ko.toJSON(networkProxy)+"}",
             dataType: 'json',
             success: function(data) {
-              displaySuccessMessage($.i18n.prop('networkproxy.updated',self.networkProxy.id()));
+              $.log("update proxy id:"+self.networkProxy.id());
+              var message=$.i18n.prop('networkproxy.updated',self.networkProxy.id());
+              displaySuccessMessage(message);
               self.networkProxy.modified(false);
               if (!this.bulkMode){
                 activateNetworkProxiesGridTab();
@@ -118,6 +120,7 @@ $(function() {
     this.gridViewModel = null;
 
     editNetworkProxy=function(networkProxy){
+      clearUserMessages();
       $.log("editNetworkProxy");
       $("#main-content #network-proxies-view-tabs-li-edit a").html($.i18n.prop("edit"));
       var viewModel = new NetworkProxyViewModel(networkProxy,true,self);