This commit is contained in:
Aevann1 2021-10-06 01:21:23 +02:00
parent b58fdf3328
commit 672afac235
3 changed files with 3 additions and 2 deletions

View file

@ -7,7 +7,7 @@ function post(url, callback, errortext) {
xhr.onerror=function() { alert(errortext); };
xhr.onload = function() {
if (xhr.status >= 200 && xhr.status < 300) {
callback();
if (typeof callback === "function") callback();
} else {
xhr.onerror();
}

View file

@ -76,4 +76,5 @@ function insertGIF(url,form) {
commentBox.value = old + gif;
if (typeof checkForRequired === "function") checkForRequired();
}

View file

@ -1,4 +1,4 @@
<script src="/assets/js/gif_modal.js?v=5"></script>
<script src="/assets/js/gif_modal.js?v=6"></script>
<div class="modal fade" id="gifModal" tabindex="-1" role="dialog" aria-labelledby="gifModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable modal-dialog-centered p-5" role="document">