Plugin Directory

Changeset 1243989


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

clear grid on cancel

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

Legend:

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

    r1243970 r1243989  
    8888                    modal: true,
    8989                    width: 'auto',
    90                     position:['middle','middle'],
     90                    my: 'center',
     91                    at: 'center',
    9192                    buttons: {
    9293                            \"Check!\": function(selected) {
     
    118119                            },
    119120                            Cancel: function() {
     121                    // reset the grid
     122                                    clear_grid(\"#iamhuman_grid\");
     123                                    highlight_list(\"#iamhuman_grid\", \"colour_one\", foreground);
     124                                    highlight_list(\"#iamhuman_grid\", \"colour_two\", guide);
     125
    120126                                    jQuery(this).dialog(\"close\");
    121127                            }
  • i-am-human/trunk/js/iamhuman.js

    r1243970 r1243989  
    5757
    5858    grid_element = jQuery(grid_selector);
    59    
    60  
     59     
    6160    grid_element.css("display", "table");
    6261   
Note: See TracChangeset for help on using the changeset viewer.