From 4d6d0b05bf02a170f23045dae8653dd536c953f8 Mon Sep 17 00:00:00 2001 From: alec Date: Thu, 13 May 2010 17:38:23 +0000 Subject: - Fix space bar and backspace buttons not working (#1486726) git-svn-id: https://svn.roundcube.net/trunk@3616 208e9e7b-5314-0410-a742-e7e81cd9613c --- plugins/new_user_dialog/new_user_dialog.php | 31 ++++++++++++++++++++++------- plugins/new_user_dialog/package.xml | 25 +++++++++++++++++++---- 2 files changed, 45 insertions(+), 11 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'); } } diff --git a/plugins/new_user_dialog/package.xml b/plugins/new_user_dialog/package.xml index cb0bc1644..0ebee36e3 100644 --- a/plugins/new_user_dialog/package.xml +++ b/plugins/new_user_dialog/package.xml @@ -13,10 +13,10 @@ roundcube@gmail.com yes - 2010-03-29 - + 2010-05-13 + - 1.0 + 1.1 1.0 @@ -24,7 +24,9 @@ stable GNU GPLv2 - - + +- Fix space bar and backspace buttons not working (#1486726) + @@ -62,4 +64,19 @@ + + + 2010-03-29 + + + 1.0 + 1.0 + + + stable + stable + + GNU GPLv2 + + -- cgit v1.2.3