diff options
author | Olivier Lamy <olamy@apache.org> | 2012-03-01 11:46:37 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-03-01 11:46:37 +0000 |
commit | b90094b4351a5daf465bde5f6e4b39c2852ce398 (patch) | |
tree | 78042979b9bb012442b738c164befc191643f69b | |
parent | aaa3870d461a4a33970ebf99d3553292c726e696 (diff) | |
download | archiva-b90094b4351a5daf465bde5f6e4b39c2852ce398.tar.gz archiva-b90094b4351a5daf465bde5f6e4b39c2852ce398.zip |
[MRM-1610] Use Jackson as jaxrs provider for cxf for performance reasons
fix proxy connector screen update policies when values comes from default values.
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1295526 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js | 9 |
1 files changed, 8 insertions, 1 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 6cc6272a7..7961bac46 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 @@ -81,13 +81,20 @@ $(function() { this.updatePolicyEntry=function(key,value){ $.log("updatePolicyEntry:"+key+":"+value); + var found=false; for(var i=0;i<self.policiesEntries().length;i++){ + $.log('loop policiesEntries:'+self.policiesEntries()[i].key); if (self.policiesEntries()[i].key==key){ self.policiesEntries()[i].value=value; - $.log("really updatedPolicyEntry:"+key+":"+self.policiesEntries()[i].value); + $.log("really updatedPolicyEntry:"+key+":"+self.policiesEntries()[i].value) + found=true; self.modified(true); } } + if(!found){ + self.policiesEntries().push(new Entry(key,value)); + $.log("added updatedPolicyEntry:"+key+":"+self.policiesEntries()[i].value()); + } } } |