Merge branch 'master' of https://github.com/LQDJudge/online-judge
This commit is contained in:
commit
e51c76c68c
1 changed files with 5 additions and 5 deletions
|
@ -27,10 +27,10 @@
|
||||||
$('#load_button').addClass('disabled');
|
$('#load_button').addClass('disabled');
|
||||||
|
|
||||||
var file = files[0];
|
var file = files[0];
|
||||||
if (file.type != 'text/csv') {
|
//if (file.type != 'text/csv') {
|
||||||
alert("{{_('Upload CSV only')}}");
|
// alert("{{_('Upload CSV only')}}");
|
||||||
return;
|
// return;
|
||||||
}
|
//}
|
||||||
var form_data = new FormData();
|
var form_data = new FormData();
|
||||||
form_data.append('csv_file', file, file.name);
|
form_data.append('csv_file', file, file.name);
|
||||||
|
|
||||||
|
@ -108,4 +108,4 @@
|
||||||
<br>
|
<br>
|
||||||
<table id="table_csv" class="table"></table>
|
<table id="table_csv" class="table"></table>
|
||||||
<p style="margin-left: 2em" id="log"></p>
|
<p style="margin-left: 2em" id="log"></p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue