Plugin Directory

Changeset 1244015


Ignore:
Timestamp:
09/12/2015 11:44:42 AM (10 years ago)
Author:
rclick
Message:

now disable button on submit

Location:
i-am-human/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • i-am-human/trunk/iamhuman.php

    r1243989 r1244015  
    8383                    answer_field = form.children('input[name=\"iamhuman_answer\"]:first');
    8484                }
    85                 
     85 
    8686                jQuery(\"#iamhuman_container\").dialog({
    8787                    resizable: false,
    8888                    modal: true,
    8989                    width: 'auto',
    90                     my: 'center',
     90                    my: 'center', 
    9191                    at: 'center',
    9292                    buttons: {
    93                             \"Check!\": function(selected) {
    94                            
     93                            \"Check!\": {text: 'Check!', id: 'dialog_check', click: function(selected) {
     94                                   
     95                    jQuery('#dialog_check').button('option', 'disabled', true );
     96
    9597                                    selection_string = get_selection_string(\"#iamhuman_grid\", \"colour_one\");
    9698                                   
     
    101103                                   
    102104                                    dialog = this;
    103                                    
    104                                     $.post(ajaxurl, data, function(response) {
    105                                        
     105
     106                                    jQuery.post(ajaxurl, data, function(response) {
     107
    106108                                        result = $(response).find('success').first().text();
    107109                                       
    108110                                        if(result == 'true') {
    109                                             $('.iamhuman_message').hide();
     111                                            jQuery('.iamhuman_message').hide();
    110112                                            answer_field.val(selection_string);
    111                                             $('#alt_submit').click();
     113                                            jQuery('#alt_submit').click();
    112114                                       } else {
    113115                                            // display error message
    114                                             $('.iamhuman_message').show();
     116                                            jQuery('.iamhuman_message').show();
    115117                                        }
    116                                        
     118                    jQuery('#dialog_check').button('option', 'disabled', false );
    117119                                    });
    118120
    119                             },
     121                            }},
    120122                            Cancel: function() {
    121123                    // reset the grid
     
    123125                                    highlight_list(\"#iamhuman_grid\", \"colour_one\", foreground);
    124126                                    highlight_list(\"#iamhuman_grid\", \"colour_two\", guide);
     127                    jQuery('.iamhuman_message').hide();
    125128
    126129                                    jQuery(this).dialog(\"close\");
  • i-am-human/trunk/readme.txt

    r1243991 r1244015  
    1414== Description ==
    1515
    16 ** Firstly ** Sorry for not responding to forum questions; I wasn't setup to recieve emails when posts were created so completely missed them :( Thats fixed now, so hopefully I can get onto issues quicker from now on.
     16**Firstly**
    1717
    18 ** Secondly ** To those who have donated money, WOW, you are good human beings. Thank you.
     18Sorry for not responding to forum questions; I wasn't setup to recieve emails when posts were created so completely missed them :( Thats fixed now, so hopefully I can get onto issues quicker from now on.
     19
     20**Secondly**
     21
     22To those who have donated money, WOW, you are good human beings. Thank you.
    1923
    2024Sick of annoying CAPTCHA plugins, that give your users a blurry image that even you can't read? Why not try I Am Human? Its a fully customisable grid based human verification technique, that you can make as easy, or as hard as you want. Not only that, you can theme it so it looks like your site, and make it fun to use! This isn't so much of a plugin, as it is a revolution!
Note: See TracChangeset for help on using the changeset viewer.