display captcha loading and unavailable images
This commit is contained in:
parent
78b3171872
commit
c53b8fef90
Binary file not shown.
After Width: | Height: | Size: 8.7 KiB |
Binary file not shown.
After Width: | Height: | Size: 9.1 KiB |
|
@ -151,7 +151,7 @@ window.addEventListener('load', _ => {
|
|||
$("#captchaImage").attr("src", "/assets/img/captcha/"+data.id+".png");
|
||||
$("#captchaId").val(data.id);
|
||||
}).fail(_ => {
|
||||
$("#captchaImage").attr("src", "");
|
||||
$("#captchaImage").attr("src", "/assets/img/captcha/unavailable.png");
|
||||
$("#captchaId").val();
|
||||
});
|
||||
}
|
||||
|
|
|
@ -314,9 +314,9 @@
|
|||
<!-- Captcha image-->
|
||||
<div>
|
||||
<span class="d-inline-block">
|
||||
<img src="" alt="captcha error" id="captchaImage">
|
||||
<img src="/assets/img/captcha/loading.png" alt="captcha error" id="captchaImage">
|
||||
</span>
|
||||
<span id="captchaReload" role="button">
|
||||
<span id="captchaReload" role="button" class="text-primary">
|
||||
<i class="fas fa-rotate-right"></i>
|
||||
</span>
|
||||
<input type="hidden" id="captchaId">
|
||||
|
|
Loading…
Reference in New Issue