Commit 90bce98c authored by Lukas Böhm's avatar Lukas Böhm 🎱
Browse files

bug fixess

parent c09f6fcd
......@@ -3,7 +3,7 @@
{% block content %}
<div class="pricing-header px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center">
<h1 class="display-4">Hochgeladen!</h1>
<p class="lead">Kopieren und verschicken sie den unten stehenden Link.</p>
<p class="lead">Kopieren und verschicken Sie den unten stehenden Link.</p>
</div>
<div class="card mb-4 shadow text-center">
......
......@@ -12,7 +12,7 @@
{{ form.hidden_tag() }}
<div class="card-header">
<h4 class="my-0 font-weight-normal">{{ form.name(class='form-control', placeholder='Name vergeben (optional)', size=32) }}</h4>
<h4 class="my-0 font-weight-normal">{{ form.name(class='form-control', placeholder='Name vergeben (optional)', size=64, maxlength=64) }}</h4>
</div>
<div class="card-body">
......@@ -73,6 +73,8 @@
document.getElementById('name').disabled = true;
document.getElementById('files').disabled = true;
console.log(xhr.responseText);
$('#abort').removeClass('d-none').click(function (){
console.log('ABORTED UPLOAD')
abb = true
......@@ -84,6 +86,9 @@
$('.progress-bar').html(percentVal).width(percentVal);
},
complete: function(xhr) {
console.log(xhr.responseText);
if (!abb){
if(xhr.responseText === "undefined") {
window.location.href = "{{ url_for('expired') }}"
......
Supports Markdown
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