From 434d929108d4286ac9dbfc8966fad1a9b85bded3 Mon Sep 17 00:00:00 2001 From: thomasb Date: Mon, 16 Jan 2012 15:45:02 +0000 Subject: Use jquery UI to render the new user dialog git-svn-id: https://svn.roundcube.net/trunk@5783 208e9e7b-5314-0410-a742-e7e81cd9613c --- plugins/new_user_dialog/new_user_dialog.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/new_user_dialog/new_user_dialog.php') 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'); -- cgit v1.2.3