summaryrefslogtreecommitdiff
path: root/plugins/new_user_dialog/new_user_dialog.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-05-13 17:38:23 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-05-13 17:38:23 +0000
commit4d6d0b05bf02a170f23045dae8653dd536c953f8 (patch)
tree24c8ae7cca453f77b3b510f248a34add9050c7be /plugins/new_user_dialog/new_user_dialog.php
parent38d81821675d07d6ab0bb69db9581cf316bd042d (diff)
- Fix space bar and backspace buttons not working (#1486726)
git-svn-id: https://svn.roundcube.net/trunk@3616 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.php31
1 files changed, 24 insertions, 7 deletions
diff --git a/plugins/new_user_dialog/new_user_dialog.php b/plugins/new_user_dialog/new_user_dialog.php
index f5881f669..828e66b51 100644
--- a/plugins/new_user_dialog/new_user_dialog.php
+++ b/plugins/new_user_dialog/new_user_dialog.php
@@ -52,24 +52,41 @@ class new_user_dialog extends rcube_plugin
$table = new html_table(array('cols' => 2));
$table->add('title', $this->gettext('name'));
- $table->add(null, html::tag('input', array('type' => "text", 'name' => "_name", 'value' => $identity['name'])));
+ $table->add(null, html::tag('input', array(
+ 'type' => 'text',
+ 'name' => '_name',
+ 'value' => $identity['name']
+ )));
$table->add('title', $this->gettext('email'));
- $table->add(null, html::tag('input', array('type' => "text", 'name' => "_email", 'value' => $identity['email'], 'disabled' => ($identities_level == 1 || $identities_level == 3))));
+ $table->add(null, html::tag('input', array(
+ 'type' => 'text',
+ 'name' => '_email',
+ 'value' => $identity['email'],
+ 'disabled' => ($identities_level == 1 || $identities_level == 3)
+ )));
// add overlay input box to html page
- $rcmail->output->add_footer(html::div(array('id' => "newuseroverlay"),
+ $rcmail->output->add_footer(html::div(array('id' => 'newuseroverlay'),
html::tag('form', array(
'action' => $rcmail->url('plugin.newusersave'),
- 'method' => "post"),
+ 'method' => 'post'),
html::tag('h3', null, Q($this->gettext('identitydialogtitle'))) .
html::p('hint', Q($this->gettext('identitydialoghint'))) .
$table->show() .
- html::p(array('class' => "formbuttons"),
- html::tag('input', array('type' => "submit", 'class' => "button mainaction", 'value' => $this->gettext('save'))))
+ 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(
+ "$(document).ready(function () {
+ rcmail.message_list.key_press = function(){};
+ rcmail.message_list.key_down = function(){};
+ });", 'foot');
+
$this->include_stylesheet('newuserdialog.css');
}
}