PluginProbe ʕ •ᴥ•ʔ
reCaptcha by BestWebSoft / 1.10
reCaptcha by BestWebSoft v1.10
1.79 1.80 1.82 1.83 1.84 1.85 1.86 1.87 trunk 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.21 1.22 1.23 1.24 1.25 1.26 1.27 1.28 1.29 1.30 1.31 1.32 1.33 1.34 1.35 1.36 1.37 1.38 1.39 1.40 1.41 1.42 1.43 1.44 1.45 1.46 1.47 1.48 1.49 1.50 1.51 1.52 1.53 1.54 1.55 1.56 1.57 1.58 1.59 1.60 1.61 1.62 1.63 1.64 1.65 1.66 1.67 1.68 1.70 1.71 1.72 1.73 1.74 1.75 1.78
google-captcha / js / script.js
google-captcha / js Last commit date
script.js 11 years ago
script.js
40 lines
1 (function( $ ) {
2 $( document ).ready(function() {
3 $( '#recaptcha_widget_div #recaptcha_response_field' ).live( 'input paste change', function() {
4 $error = $( this ).parents( '#recaptcha_widget_div' ).next( '#gglcptch_error' );
5 if( $error.length ) {
6 $error.remove();
7 }
8 });
9 $( 'form' ).submit(function( e ) {
10 var $form = $( this ),
11 $captcha = $form.find( '#recaptcha_widget_div:visible' );
12 if ( $captcha.length ) {
13 $.ajax({
14 async : false,
15 cache : false,
16 type : 'POST',
17 url : gglcptch_path,
18 headers : {
19 'Content-Type' : 'application/x-www-form-urlencoded'
20 },
21 data : {
22 recaptcha_challenge_field : $( '#recaptcha_challenge_field' ).val(),
23 recaptcha_response_field : $( '#recaptcha_response_field' ).val()
24 },
25 success : function( data ) {
26 if ( data == 'error' ) {
27 if ( $captcha.next( '#gglcptch_error' ).length == 0 ) {
28 $captcha.after( '<label id="gglcptch_error">' + gglcptch_error_msg + '</label>' );
29 }
30 $( '#recaptcha_reload' ).trigger( 'click' );
31 e.preventDefault ? e.preventDefault() : (e.returnValue = false);
32 return false;
33 }
34 }
35 });
36 $( '#recaptcha_reload' ).trigger( 'click' );
37 }
38 });
39 });
40 })(jQuery);