| | |
| | | $table->add(null, html::tag('textarea', array( |
| | | 'name' => '_signature', |
| | | 'rows' => '3', |
| | | ),$identity['signature'] |
| | | ), |
| | | $identity['signature'] |
| | | )); |
| | | |
| | | // add overlay input box to html page |
| | | $rcmail->output->add_footer(html::tag('form', array( |
| | | 'id' => 'newuserdialog', |
| | | 'action' => $rcmail->url('plugin.newusersave'), |
| | | 'method' => 'post'), |
| | | 'method' => 'post' |
| | | ), |
| | | html::p('hint', rcube::Q($this->gettext('identitydialoghint'))) . |
| | | $table->show() . |
| | | html::p(array('class' => 'formbuttons'), |
| | |
| | | )); |
| | | |
| | | $title = rcube::JQ($this->gettext('identitydialogtitle')); |
| | | |
| | | // disable keyboard events for messages list (#1486726) |
| | | $rcmail->output->add_script(" |
| | | $script = " |
| | | $('#newuserdialog').show() |
| | | .dialog({modal:true, resizable:false, closeOnEscape:false, width:450, title:'$title'}) |
| | | .submit(function() { |
| | | var i, request = {}, form = $(this).serializeArray(); |
| | | |
| | | for (i in form) |
| | | request[form[i].name] = form[i].value; |
| | | |
| | | rcmail.http_post('plugin.newusersave', request, true); |
| | | return false; |
| | | }); |
| | | |
| | | $('input[name=_name]').focus(); |
| | | rcube_webmail.prototype.new_user_dialog_close = function() { $('#newuserdialog').dialog('close'); } |
| | | ", 'docready'); |
| | | "; |
| | | // disable keyboard events for messages list (#1486726) |
| | | $rcmail->output->add_script($script, 'docready'); |
| | | |
| | | $this->include_stylesheet('newuserdialog.css'); |
| | | } |
| | |
| | | |
| | | $rcmail->output->send(); |
| | | } |
| | | |
| | | } |