mirror of https://github.com/apache/archiva.git
[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:
parent
aaa3870d46
commit
b90094b435
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue