diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-03-01 22:49:42 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-03-01 22:49:42 +0000 |
| commit | bd0c274484852d715432d21cd1110435f184a9e6 (patch) | |
| tree | 985a893a144b1e6ae992b795bde228cf3f3d4983 /plugins | |
| parent | 55c72bb7a414e9719519095a085ac9f225b077dc (diff) | |
Make use of new docready script block
git-svn-id: https://svn.roundcube.net/trunk@4590 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/new_user_dialog/new_user_dialog.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/new_user_dialog/new_user_dialog.php b/plugins/new_user_dialog/new_user_dialog.php index 96cd0da23..c8b82fdab 100644 --- a/plugins/new_user_dialog/new_user_dialog.php +++ b/plugins/new_user_dialog/new_user_dialog.php @@ -82,11 +82,10 @@ class new_user_dialog extends rcube_plugin // disable keyboard events for messages list (#1486726) $rcmail->output->add_script( - "$(document).ready(function () { - rcmail.message_list.key_press = function(){}; - rcmail.message_list.key_down = function(){}; - $('input[name=_name]').focus(); - });", 'foot'); + "rcmail.message_list.key_press = function(){}; + rcmail.message_list.key_down = function(){}; + $('input[name=_name]').focus(); + ", 'docready'); $this->include_stylesheet('newuserdialog.css'); } |
