Private
Public Access
1
0

better more intuitive course update

This commit is contained in:
Sander Roosendaal
2020-07-11 17:05:21 +02:00
parent 7b552f8da6
commit 6372da689c
10 changed files with 570 additions and 54 deletions

View File

@@ -24,7 +24,7 @@
<p>Drag and drop files here </p>
</div>
<div id="id_drop-files" class="grid_12 alpha drop-files">
<form id="file_form" enctype="multipart/form-data" action="{{ formloc }}" method="post">
<form id="file_form" enctype="multipart/form-data" method="post">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
@@ -242,6 +242,8 @@
$("#id_waiting").replaceWith(
'<div id="id_failed" class="grid_12 alpha message">Your upload failed</div>'
);
console.log(data);
setTimeout(1000);
setTimeout(function() {
location.reload();
},1000);