[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
This commit is contained in:
Olivier Lamy 2012-03-01 11:46:37 +00:00
parent aaa3870d46
commit b90094b435
1 changed files with 8 additions and 1 deletions

View File

@ -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());
}
}
}