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 dbd73ec98..6cc6272a7 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 @@ -80,9 +80,11 @@ $(function() { //this.modified.subscribe(function(newValue){$.log("ProxyConnector modified:"+newValue)}); this.updatePolicyEntry=function(key,value){ - for(var i=0;i0){ + var value = selectedOption.val(); + $.log("changePolicyOption:"+id+":"+value); + self.proxyConnector.updatePolicyEntry(id,value); + + } } @@ -366,9 +373,8 @@ $(function() { proxyConnector:ko.toJS(proxyConnector) } ).html(); - $.log("tmpl:"+tmplHtml); targetContent.append(tmplHtml); - $.log("showSettings#targetContent:"+id+","+targetContent.length+","+targetContent.attr("id")+",html:"+targetContent.html()); + var targetImg = $((targetImgStartId?targetImgStartId:"#proxy-connectors-grid-remoterepo-settings-edit-") +proxyConnector.sourceRepoId()+"-"+proxyConnector.targetRepoId()); targetImg.attr("data-content",targetContent.html()); @@ -618,7 +624,9 @@ $(function() { if (data==null){ return null; } - return new PolicyInformation(mapStringArray(data.options),data.defaultOption,data.id,data.name); + var policyInformation = new PolicyInformation(mapStringArray(data.options),data.defaultOption,data.id,data.name); + $.log("policyInformation.options:"+policyInformation.options()); + return policyInformation; } mapPolicyInformations=function(data){