[MRM-1705] Feature to add custom parameters and/or headers when requesting an external repositories.

implements ui to delete extraParameters.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1402493 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-10-26 12:58:16 +00:00
parent f10a08cc8c
commit 25ebb715bf
2 changed files with 11 additions and 1 deletions

View File

@ -888,6 +888,16 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,ko) {
self.remoteRepository.modified(true);
}
deleteExtraParameter=function(key){
for(var i=0;i<self.remoteRepository.extraParametersEntries().length;i++){
var entry=self.remoteRepository.extraParametersEntries()[i];
if (entry.key==key){
self.remoteRepository.extraParametersEntries.remove(entry);
self.remoteRepository.modified(true);
}
}
}
}
RemoteRepositoriesViewModel=function(){

View File

@ -198,7 +198,7 @@
<tr>
<td data-bind="text: key"></td>
<td data-bind="text: value"></td>
<td><a href="#" data-bind="click: function(){ $parent.deleteExtraParameter(key)}">${$.i18n.prop('delete')}</a></td>
<td><a href="#" data-bind="click: function(){ deleteExtraParameter(key)}">${$.i18n.prop('delete')}</a></td>
</tr>
</tbody>
</table>