dfsfds
This commit is contained in:
parent
b58fdf3328
commit
672afac235
3 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -76,4 +76,5 @@ function insertGIF(url,form) {
|
|||
|
||||
commentBox.value = old + gif;
|
||||
|
||||
if (typeof checkForRequired === "function") checkForRequired();
|
||||
}
|
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue