修复无法刷新验证码的问题

This commit is contained in:
virusdefender 2015-09-11 17:45:34 +08:00
parent ad4b1150f3
commit 7d52a46d88

View File

@ -1,7 +1,7 @@
require(["jquery", "bsAlert", "csrfToken", "validator"], function ($, bsAlert, csrfTokenHeader) {
function refresh_captcha(){
this.src = "/captcha/?" + Math.random();
$("#captcha-img")[0].src = "/captcha/?" + Math.random();
$("#captcha")[0].value = "";
}
$("#captcha-img").click(function(){