This commit is contained in:
jr-k 2024-08-24 23:59:10 +02:00
parent bc85e0c33f
commit 21162495cb
2 changed files with 3 additions and 3 deletions

View File

@ -42,9 +42,9 @@ jQuery(function ($) {
if (statusCode !== 200) {
const $alert = $('.alert-upload').removeClass('hidden');
if (statusCode === 413) {
$alert.text(l.js_common_http_error_413);
$alert.html(`<i class="fa fa-warning"></i>${l.js_common_http_error_413}`);
} else {
$alert.text(l.js_common_http_error_occured.replace('%code%', statusCode));
$alert.html(`<i class="fa fa-warning"></i>${l.js_common_http_error_occured.replace('%code%', statusCode)}`);
}
} else {
document.location.reload();

View File

@ -22,7 +22,7 @@
<script src="{{ STATIC_PREFIX }}js/lib/jquery-ui.min.js"></script>
<script src="{{ STATIC_PREFIX }}js/lib/jquery-fileupload.js"></script>
<script src="{{ STATIC_PREFIX }}js/lib/jquery-multidraggable.js"></script>
<script src="{{ STATIC_PREFIX }}js/dragdrop.js"></script>
<script src="{{ STATIC_PREFIX }}js/super-upload.js"></script>
{{ HOOK(H_SLIDESHOW_CONTENT_JAVASCRIPT) }}
{% endblock %}