X-Git-Url: https://git.donarmstrong.com/?p=roundcube.git;a=blobdiff_plain;f=plugins%2Fnew_user_dialog%2Fnew_user_dialog.php;h=9d7cbcba57e09123746522557d3dc2e29d5c5a64;hp=c537b9b86a1a76fe84198fe3b2d37bd22bbb095b;hb=a2dd2e41259a5e90016efcd7d083020b95e25527;hpb=fe4a852cd4335d3d2089b13e10d409fa2fa816d8 diff --git a/plugins/new_user_dialog/new_user_dialog.php b/plugins/new_user_dialog/new_user_dialog.php index c537b9b..9d7cbcb 100644 --- a/plugins/new_user_dialog/new_user_dialog.php +++ b/plugins/new_user_dialog/new_user_dialog.php @@ -66,6 +66,20 @@ class new_user_dialog extends rcube_plugin 'disabled' => ($identities_level == 1 || $identities_level == 3) ))); + $table->add('title', $this->gettext('organization')); + $table->add(null, html::tag('input', array( + 'type' => 'text', + 'name' => '_organization', + 'value' => $identity['organization'] + ))); + + $table->add('title', $this->gettext('signature')); + $table->add(null, html::tag('textarea', array( + 'name' => '_signature', + 'rows' => '3', + ),$identity['signature'] + )); + // add overlay input box to html page $rcmail->output->add_footer(html::div(array('id' => 'newuseroverlay'), html::tag('form', array( @@ -82,11 +96,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'); } @@ -107,6 +120,8 @@ class new_user_dialog extends rcube_plugin $save_data = array( 'name' => get_input_value('_name', RCUBE_INPUT_POST), 'email' => get_input_value('_email', RCUBE_INPUT_POST), + 'organization' => get_input_value('_organization', RCUBE_INPUT_POST), + 'signature' => get_input_value('_signature', RCUBE_INPUT_POST), ); // don't let the user alter the e-mail address if disabled by config @@ -126,4 +141,4 @@ class new_user_dialog extends rcube_plugin } -?> \ No newline at end of file +?>