Changeset 5783 in subversion


Ignore:
Timestamp:
Jan 16, 2012 10:45:02 AM (16 months ago)
Author:
thomasb
Message:

Use jquery UI to render the new user dialog

Location:
trunk/plugins/new_user_dialog
Files:
3 edited

Legend:

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

    r5127 r5783  
    8282 
    8383      // add overlay input box to html page 
    84       $rcmail->output->add_footer(html::div(array('id' => 'newuseroverlay'), 
    85         html::tag('form', array( 
     84      $rcmail->output->add_footer(html::tag('form', array( 
     85            'id' => 'newuserdialog', 
    8686            'action' => $rcmail->url('plugin.newusersave'), 
    8787            'method' => 'post'), 
     
    9292            html::tag('input', array('type' => 'submit', 
    9393              'class' => 'button mainaction', 'value' => $this->gettext('save')))) 
    94         ) 
    95       )); 
     94        )); 
    9695 
    9796      // disable keyboard events for messages list (#1486726) 
     
    9998        "rcmail.message_list.key_press = function(){}; 
    10099         rcmail.message_list.key_down = function(){}; 
     100         $('#newuserdialog').show().dialog({ modal:true, resizable:false, closeOnEscape:false, width:420 }); 
    101101         $('input[name=_name]').focus(); 
    102102        ", 'docready'); 
  • trunk/plugins/new_user_dialog/newuserdialog.css

    r5127 r5783  
    1 /** Styles for the new-user-dialog overlay box */ 
     1/** Styles for the new-user-dialog box */ 
    22 
    3 #newuseroverlay { 
    4   position: absolute; 
    5   top: 0; 
    6   left: 0; 
    7   right: 0; 
    8   bottom: 0; 
    9   z-index: 10000; 
    10   background: rgba(0,0,0,0.5) !important; 
    11   background: #333; 
    12    
    13   /** IE hacks */ 
    14   filter: alpha(opacity=90); 
    15   -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"; 
    16   width: expression(document.documentElement.clientWidth+'px'); 
    17   height: expression(document.documentElement.clientHeight+'px'); 
     3#newuserdialog { 
     4        display: none; 
    185} 
    196 
    20 #newuseroverlay h3 { 
    21   color: #333; 
    22   font-size: normal; 
    23   margin-top: 0.5em; 
    24   margin-bottom: 0; 
     7#newuserdialog h3 { 
     8        color: #333; 
     9        font-size: normal; 
     10        margin-top: 0; 
     11        margin-bottom: 0; 
    2512} 
    2613 
    27 #newuseroverlay p.hint { 
    28   margin-top: 0.5em; 
    29   font-style: italic; 
     14#newuserdialog p.hint { 
     15        margin-top: 0.5em; 
     16        margin-bottom: 1em; 
     17        font-style: italic; 
    3018} 
    3119 
    32 #newuseroverlay form { 
    33   width: 32em; 
    34   margin: 8em auto; 
    35   padding: 1em 2em; 
    36   background: #F6F6F6; 
    37   border: 2px solid #555; 
    38   border-radius: 6px; 
    39   -moz-border-radius: 6px; 
    40   -webkit-border-radius: 6px; 
     20#newuserdialog table td.title { 
     21        color: #666; 
     22        text-align: right; 
     23        padding-right: 1em; 
     24        white-space: nowrap; 
    4125} 
    4226 
    43 #newuseroverlay table td.title 
    44 { 
    45   color: #666; 
    46   text-align: right; 
    47   padding-right: 1em; 
    48   white-space: nowrap; 
     27#newuserdialog table td input, 
     28#newuserdialog table td textarea { 
     29        width: 20em; 
    4930} 
    5031 
    51 #newuseroverlay table td input, 
    52 #newuseroverlay table td textarea 
    53 { 
    54   width: 20em; 
     32#newuserdialog .formbuttons { 
     33        margin-top: 1.5em; 
     34        text-align: center; 
    5535} 
    5636 
    57 #newuseroverlay .formbuttons { 
    58   margin-top: 1.5em; 
    59   text-align: center; 
     37.ui-dialog-titlebar-close { 
     38        display: none; 
    6039} 
  • trunk/plugins/new_user_dialog/package.xml

    r4749 r5783  
    1414                <active>yes</active> 
    1515        </lead> 
    16         <date>2011-05-12</date> 
    17         <time>10:00</time> 
     16        <date>2012-01-16</date> 
     17        <time>17:00</time> 
    1818        <version> 
    19                 <release>1.4</release> 
     19                <release>1.5</release> 
    2020                <api>1.0</api> 
    2121        </version> 
     
    2626        <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU GPLv2</license> 
    2727        <notes> 
     28- Use jquery UI to render the dialog 
    2829- Fixed IDNA encoding/decoding of e-mail addresses (#1487909) 
    29     </notes> 
     30        </notes> 
    3031        <contents> 
    3132                <dir baseinstalldir="/" name="/"> 
     
    7172        </dependencies> 
    7273        <phprelease/> 
    73     <changelog> 
    74         <release> 
    75                 <date>2010-03-29</date> 
    76                 <time>13:20:00</time> 
    77                 <version> 
    78                         <release>1.0</release> 
    79                         <api>1.0</api> 
    80                 </version> 
    81                 <stability> 
    82                         <release>stable</release> 
    83                         <api>stable</api> 
    84                 </stability> 
    85                 <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU GPLv2</license> 
    86                 <notes></notes> 
    87         </release> 
    88         <release> 
    89                 <date>2010-05-13</date> 
    90                 <time>19:35:00</time> 
    91                 <version> 
    92                         <release>1.1</release> 
    93                         <api>1.0</api> 
    94                 </version> 
    95                 <stability> 
    96                         <release>stable</release> 
    97                         <api>stable</api> 
    98                 </stability> 
    99                 <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU GPLv2</license> 
    100                 <notes> 
     74        <changelog> 
     75                <release> 
     76                        <date>2010-03-29</date> 
     77                        <time>13:20:00</time> 
     78                        <version> 
     79                                <release>1.0</release> 
     80                                <api>1.0</api> 
     81                        </version> 
     82                        <stability> 
     83                                <release>stable</release> 
     84                                <api>stable</api> 
     85                        </stability> 
     86                        <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU GPLv2</license> 
     87                        <notes></notes> 
     88                </release> 
     89                <release> 
     90                        <date>2010-05-13</date> 
     91                        <time>19:35:00</time> 
     92                        <version> 
     93                                <release>1.1</release> 
     94                                <api>1.0</api> 
     95                        </version> 
     96                        <stability> 
     97                                <release>stable</release> 
     98                                <api>stable</api> 
     99                        </stability> 
     100                        <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU GPLv2</license> 
     101                        <notes> 
    101102- Fix space bar and backspace buttons not working (#1486726) 
    102             </notes> 
    103         </release> 
    104         <release> 
    105                 <date>2010-05-27</date> 
    106                 <time>12:00:00</time> 
    107                 <version> 
    108                         <release>1.2</release> 
    109                         <api>1.0</api> 
    110                 </version> 
    111                 <stability> 
    112                         <release>stable</release> 
    113                         <api>stable</api> 
    114                 </stability> 
    115                 <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU GPLv2</license> 
    116                 <notes> 
     103                        </notes> 
     104                </release> 
     105                <release> 
     106                        <date>2010-05-27</date> 
     107                        <time>12:00:00</time> 
     108                        <version> 
     109                                <release>1.2</release> 
     110                                <api>1.0</api> 
     111                        </version> 
     112                        <stability> 
     113                                <release>stable</release> 
     114                                <api>stable</api> 
     115                        </stability> 
     116                        <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU GPLv2</license> 
     117                        <notes> 
    117118- Add overlay box only to mail task main template 
    118119- Fix possible error on form submission (#1486103) 
    119             </notes> 
    120         </release> 
    121         <release> 
    122                 <date>2010-12-02</date> 
    123                 <time>12:00:00</time> 
    124                 <version> 
    125                         <release>1.3</release> 
    126                         <api>1.0</api> 
    127                 </version> 
    128                 <stability> 
    129                         <release>stable</release> 
    130                         <api>stable</api> 
    131                 </stability> 
    132                 <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU GPLv2</license> 
    133                 <notes> 
     120                        </notes> 
     121                </release> 
     122                <release> 
     123                        <date>2010-12-02</date> 
     124                        <time>12:00:00</time> 
     125                        <version> 
     126                                <release>1.3</release> 
     127                                <api>1.0</api> 
     128                        </version> 
     129                        <stability> 
     130                                <release>stable</release> 
     131                                <api>stable</api> 
     132                        </stability> 
     133                        <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU GPLv2</license> 
     134                        <notes> 
    134135- Added setting of focus on name input 
    135136- Added gl_ES translation 
    136             </notes> 
    137         </release> 
    138     </changelog> 
     137                        </notes> 
     138                </release> 
     139                <release> 
     140                        <date>2012-01-16</date> 
     141                        <time>17:00:00</time> 
     142                        <version> 
     143                                <release>1.5</release> 
     144                                <api>1.0</api> 
     145                        </version> 
     146                        <stability> 
     147                                <release>stable</release> 
     148                                <api>stable</api> 
     149                        </stability> 
     150                        <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU GPLv2</license> 
     151                        <notes>- Use jquery UI to render the dialog</notes> 
     152                </release> 
     153        </changelog> 
    139154</package> 
Note: See TracChangeset for help on using the changeset viewer.