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 committed Apr 1, 2017
1 parent 9bd9c69 commit 7588ceb
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 7588ceb

Please sign in to comment.