~vcs-imports/b2evolution/trunk

« back to all changes in this revision

Viewing changes to blogs/inc/comments/model/_comment_js.funcs.php

  • Committer: efy-asimo
  • Date: 2010-10-18 15:36:35 UTC
  • Revision ID: vcs-imports@canonical.com-20101018153635-archc68ktjvohnfg
close antispam overlay on escape key

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
        AttachServerRequest( 'antispam_ban' ); // send form via hidden iframe
112
112
        jQuery( '#close_button' ).bind( 'click', closeAntispamSettings );
113
113
        jQuery( '.SaveButton' ).bind( 'click', refresh_overlay );
 
114
 
 
115
        var keycode_esc = 27;
 
116
        jQuery(document).keyup(function(e)
 
117
        {
 
118
                if( e.keyCode == keycode_esc )
 
119
                {
 
120
                        closeAntispamSettings();
 
121
                }
 
122
        });
114
123
}
115
124
 
116
125
// This is called to close the antispam ban overlay page