Skip to content

Commit

Permalink
Reload du captcha en cas d'erreur #52
Browse files Browse the repository at this point in the history
  • Loading branch information
oceanBigOne authored and ColinMaudry committed Apr 9, 2017
1 parent faf2f65 commit 1218fbf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/js/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,10 @@ function sendAjaxRequest( url, aData, bFadeLoading)
toastr.options.timeOut = 10000;
}
toastr[response.message.type](response.message.text, response.message.title);
$captchaBtn=$(".jsCaptchaRefresh");
if($captchaBtn.length>0){
$captchaBtn.trigger('click');
}
}

if(response.type == "refresh-state-list" )
Expand Down

0 comments on commit 1218fbf

Please sign in to comment.