Changeset 3616 in subversion


Ignore:
Timestamp:
May 13, 2010 1:38:23 PM (3 years ago)
Author:
alec
Message:
  • Fix space bar and backspace buttons not working (#1486726)
Location:
trunk/plugins/new_user_dialog
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/new_user_dialog/new_user_dialog.php

    r3441 r3616  
    5353       
    5454      $table->add('title', $this->gettext('name')); 
    55       $table->add(null, html::tag('input', array('type' => "text", 'name' => "_name", 'value' => $identity['name']))); 
     55      $table->add(null, html::tag('input', array( 
     56        'type' => 'text', 
     57        'name' => '_name', 
     58        'value' => $identity['name'] 
     59      ))); 
    5660 
    5761      $table->add('title', $this->gettext('email')); 
    58       $table->add(null, html::tag('input', array('type' => "text", 'name' => "_email", 'value' => $identity['email'], 'disabled' => ($identities_level == 1 || $identities_level == 3)))); 
     62      $table->add(null, html::tag('input', array( 
     63        'type' => 'text', 
     64        'name' => '_email', 
     65        'value' => $identity['email'], 
     66        'disabled' => ($identities_level == 1 || $identities_level == 3) 
     67      ))); 
    5968       
    6069      // add overlay input box to html page 
    61       $rcmail->output->add_footer(html::div(array('id' => "newuseroverlay"), 
     70      $rcmail->output->add_footer(html::div(array('id' => 'newuseroverlay'), 
    6271        html::tag('form', array( 
    6372            'action' => $rcmail->url('plugin.newusersave'), 
    64             'method' => "post"), 
     73            'method' => 'post'), 
    6574          html::tag('h3', null, Q($this->gettext('identitydialogtitle'))) . 
    6675          html::p('hint', Q($this->gettext('identitydialoghint'))) . 
    6776          $table->show() . 
    68           html::p(array('class' => "formbuttons"), 
    69             html::tag('input', array('type' => "submit", 'class' => "button mainaction", 'value' => $this->gettext('save')))) 
     77          html::p(array('class' => 'formbuttons'), 
     78            html::tag('input', array('type' => 'submit', 
     79              'class' => 'button mainaction', 'value' => $this->gettext('save')))) 
    7080        ) 
    7181      )); 
    72        
     82 
     83      // disable keyboard events for messages list (#1486726) 
     84      $rcmail->output->add_script( 
     85        "$(document).ready(function () { 
     86          rcmail.message_list.key_press = function(){}; 
     87          rcmail.message_list.key_down = function(){}; 
     88          });", 'foot'); 
     89 
    7390      $this->include_stylesheet('newuserdialog.css'); 
    7491    } 
  • trunk/plugins/new_user_dialog/package.xml

    r3441 r3616  
    1414                <active>yes</active> 
    1515        </lead> 
    16         <date>2010-03-29</date> 
    17         <time>13:20:00</time> 
     16        <date>2010-05-13</date> 
     17        <time>19:35:00</time> 
    1818        <version> 
    19                 <release>1.0</release> 
     19                <release>1.1</release> 
    2020                <api>1.0</api> 
    2121        </version> 
     
    2525        </stability> 
    2626        <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU GPLv2</license> 
    27         <notes>-</notes> 
     27        <notes> 
     28- Fix space bar and backspace buttons not working (#1486726) 
     29    </notes> 
    2830        <contents> 
    2931                <dir baseinstalldir="/" name="/"> 
     
    6365        </dependencies> 
    6466        <phprelease/> 
     67    <changelog> 
     68        <release> 
     69                <date>2010-03-29</date> 
     70                <time>13:20:00</time> 
     71                <version> 
     72                        <release>1.0</release> 
     73                        <api>1.0</api> 
     74                </version> 
     75                <stability> 
     76                        <release>stable</release> 
     77                        <api>stable</api> 
     78                </stability> 
     79                <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU GPLv2</license> 
     80        </release> 
     81    </changelog> 
    6582</package> 
Note: See TracChangeset for help on using the changeset viewer.