fix parameter for ajax call

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1177988 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-10-01 14:20:02 +00:00
parent 43b763f95a
commit 3ead9fbb4a
1 changed files with 6 additions and 7 deletions

View File

@ -58,10 +58,9 @@
<script type="text/javascript"> <script type="text/javascript">
function downloadRemote() { function downloadRemote() {
$.ajax({ $.ajax({
url: "${pageContext.request.contextPath}/restServices/archivaServices/repositoriesService/scheduleDownloadRemoteIndex", url: "${pageContext.request.contextPath}/restServices/archivaServices/repositoriesService/scheduleDownloadRemoteIndex",
data: "repositoryId="+document.getElementById("downloadRemoteForm").repoid.value+"&now="+document.getElementById("downloadRemoteForm").now.value+"&fullDownload="+document.getElementById("downloadRemoteForm").fullDownload.value , data: "repositoryId="+document.getElementById("downloadRemoteForm").repoid.value+"&now="+document.getElementById("downloadRemoteForm").now.checked+"&fullDownload="+document.getElementById("downloadRemoteForm").fullDownload.checked ,
error: function(){ error: function(){
alert('error'); alert('error');
} }