Commit 9a046ae8 authored by pm22d12's avatar pm22d12
Browse files

Fix reload error

parent a3830dd7
......@@ -189,17 +189,20 @@ msgstr "Select the data retrieval mode"
#: templates/adminview/editdownload.html:194
#: templates/adminview/editdownload.html:197
msgid "server_remote.help"
msgstr "Server name or IP address (Ftp only)"
msgstr "Server name or IP address"
msgid "port_remote.help"
msgstr "Port number (only if not the default port)"
#: apps/downloader_admin/views.py:388
#: templates/adminview/editdownload.html:208
msgid "user_remote.help"
msgstr ""
msgstr "user name (default anonymous)"
#: apps/downloader_admin/views.py:389
#: templates/adminview/editdownload.html:219
msgid "passwd_remote.help"
msgstr ""
msgstr ""password (default anonymous)"
#: apps/downloader_admin/views.py:390
#: templates/adminview/editdownload.html:241
......
......@@ -136,7 +136,7 @@
</h4>
</div>
<form action="" id="redownload_form"
<form action="" id="redownload_form{% get_download_id values %}"
method="post" class="form-horizontal" enctype="multipart/form-data">
{% csrf_token %}
......
......@@ -1196,7 +1196,7 @@
var requesturl = BASE_URL + filename + "/" + getRealId(fileid) + "/reload_from_file";
$('#redownload_form').submit(function(e){
$('#redownload_form'+fileid).submit(function(e){
e.preventDefault();
$form = $(this)
var formData = new FormData(this);
......
......@@ -1013,9 +1013,9 @@
<!-- md5 -->
<input type="radio" name="checksum" id="checksummd5" value="md5"> md5</input></br>
<!-- sha256 -->
<input type="radio" name="checksum" id="checksumsha256" value="md5"> sha256</input></br>
<input type="radio" name="checksum" id="checksumsha256" value="sha256"> sha256</input></br>
<!-- safe -->
<input type="radio" name="checksum" id="checksumsafe" value="md5"> safe</input>
<input type="radio" name="checksum" id="checksumsafe" value="safe"> safe</input>
</div>
<!-- end if none? -->
{% endif %}
......@@ -1028,9 +1028,9 @@
<!-- md5 -->
<input type="radio" name="checksum" id="checksummd5" value="md5" checked> md5</input></br>
<!-- sha256 -->
<input type="radio" name="checksum" id="checksumsha256" value="md5"> sha256</input></br>
<input type="radio" name="checksum" id="checksumsha256" value="sha256"> sha256</input></br>
<!-- safe -->
<input type="radio" name="checksum" id="checksumsafe" value="md5"> safe</input>
<input type="radio" name="checksum" id="checksumsafe" value="safe"> safe</input>
</div>
<!-- end ifequal md5? -->
{% endifequal %}
......@@ -1043,9 +1043,9 @@
<!-- md5 -->
<input type="radio" name="checksum" id="checksummd5" value="md5"> md5</input></br>
<!-- sha256 -->
<input type="radio" name="checksum" id="checksumsha256" value="md5" checked> sha256</input></br>
<input type="radio" name="checksum" id="checksumsha256" value="sha256" checked> sha256</input></br>
<!-- safe -->
<input type="radio" name="checksum" id="checksumsafe" value="md5"> safe</input>
<input type="radio" name="checksum" id="checksumsafe" value="safe"> safe</input>
</div>
<!-- end ifequal sha256? -->
{% endifequal %}
......@@ -1058,9 +1058,9 @@
<!-- md5 -->
<input type="radio" name="checksum" id="checksummd5" value="md5"> md5</input></br>
<!-- sha256 -->
<input type="radio" name="checksum" id="checksumsha256" value="md5" checked> sha256</input></br>
<input type="radio" name="checksum" id="checksumsha256" value="sha256" checked> sha256</input></br>
<!-- safe -->
<input type="radio" name="checksum" id="checksumsafe" value="md5"> safe</input>
<input type="radio" name="checksum" id="checksumsafe" value="safe"> safe</input>
</div>
<!-- end ifequal safe? -->
{% endifequal %}
......@@ -1072,9 +1072,9 @@
<!-- md5 -->
<input type="radio" name="checksum" id="checksummd5" value="md5"> md5</input></br>
<!-- sha256 -->
<input type="radio" name="checksum" id="checksumsha256" value="md5"> sha256</input></br>
<input type="radio" name="checksum" id="checksumsha256" value="sha256"> sha256</input></br>
<!-- safe -->
<input type="radio" name="checksum" id="checksumsafe" value="md5"> safe</input>
<input type="radio" name="checksum" id="checksumsafe" value="safe"> safe</input>
</div>
<!-- end if None? -->
{% endifequal %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment