Commit 3532cdcc authored by Lukas Böhm's avatar Lukas Böhm
Browse files

fixed javascript on shared page loading (after upload)

parent ee590e26
......@@ -26,7 +26,7 @@
</div>
<script>
$(document).ready(function() {
$(window).on("load",function() {
$("#url").val(window.location.origin + "{{ url }}");
$("#copy-url").click(function(){
......
......@@ -98,7 +98,9 @@
if(xhr.responseText === "undefined") {
window.location.href = "{{ url_for('expired') }}"
} else if(xhr.responseText.includes("<html")) {
$("html").html(xhr.responseText); // TODO JAVASCRIPT BROKKEN WENN MAN GANZE HATEMAIL replaced
document.open();
document.write(xhr.responseText);
document.close();
} else {
window.location.href = xhr.responseText;
}
......
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