diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-01-16 15:45:02 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-01-16 15:45:02 +0000 |
| commit | 434d929108d4286ac9dbfc8966fad1a9b85bded3 (patch) | |
| tree | 3e05fa55c70d6821e8787a62ef827cb623f3c9d6 /plugins/new_user_dialog/new_user_dialog.php | |
| parent | 6449371635ff8110c8aa00c29c951425f1ec782a (diff) | |
Use jquery UI to render the new user dialog
git-svn-id: https://svn.roundcube.net/trunk@5783 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/new_user_dialog/new_user_dialog.php')
| -rw-r--r-- | plugins/new_user_dialog/new_user_dialog.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/new_user_dialog/new_user_dialog.php b/plugins/new_user_dialog/new_user_dialog.php index 9d7cbcba5..7a73984c5 100644 --- a/plugins/new_user_dialog/new_user_dialog.php +++ b/plugins/new_user_dialog/new_user_dialog.php @@ -81,8 +81,8 @@ class new_user_dialog extends rcube_plugin )); // add overlay input box to html page - $rcmail->output->add_footer(html::div(array('id' => 'newuseroverlay'), - html::tag('form', array( + $rcmail->output->add_footer(html::tag('form', array( + 'id' => 'newuserdialog', 'action' => $rcmail->url('plugin.newusersave'), 'method' => 'post'), html::tag('h3', null, Q($this->gettext('identitydialogtitle'))) . @@ -91,13 +91,13 @@ class new_user_dialog extends rcube_plugin html::p(array('class' => 'formbuttons'), html::tag('input', array('type' => 'submit', 'class' => 'button mainaction', 'value' => $this->gettext('save')))) - ) - )); + )); // disable keyboard events for messages list (#1486726) $rcmail->output->add_script( "rcmail.message_list.key_press = function(){}; rcmail.message_list.key_down = function(){}; + $('#newuserdialog').show().dialog({ modal:true, resizable:false, closeOnEscape:false, width:420 }); $('input[name=_name]').focus(); ", 'docready'); |
