~vcs-imports/b2evolution/trunk

« back to all changes in this revision

Viewing changes to blogs/inc/dashboard/dashboard.ctrl.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:
17
17
 *
18
18
 * @todo add 5 plugin hooks. Will be widgetized later (same as SkinTag became Widgets)
19
19
 *
20
 
 * @version $Id: dashboard.ctrl.php,v 1.70 2010/09/20 13:00:44 efy-asimo Exp $
 
20
 * @version $Id: dashboard.ctrl.php,v 1.71 2010/10/18 15:36:35 efy-asimo Exp $
21
21
 */
22
22
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
23
23
 
218
218
                                AttachServerRequest( 'antispam_ban' ); // send form via hidden iframe
219
219
                                jQuery( '#close_button' ).bind( 'click', closeAntispamSettings );
220
220
                                jQuery( '.SaveButton' ).bind( 'click', refresh_overlay );
 
221
 
 
222
                                var keycode_esc = 27;
 
223
                                jQuery(document).keyup(function(e)
 
224
                                {
 
225
                                        if( e.keyCode == keycode_esc )
 
226
                                        {
 
227
                                                closeAntispamSettings();
 
228
                                        }
 
229
                                });
221
230
                        }
222
231
 
223
232
                        // This is called to close the antispam ban overlay page
696
705
 
697
706
/*
698
707
 * $Log: dashboard.ctrl.php,v $
 
708
 * Revision 1.71  2010/10/18 15:36:35  efy-asimo
 
709
 * close antispam overlay on escape key
 
710
 *
699
711
 * Revision 1.70  2010/09/20 13:00:44  efy-asimo
700
712
 * dashboard ajax calls - fix
701
713
 *