Fix 'create task from mail' function
This commit is contained in:
parent
0d8b6912ae
commit
f8b6706074
2 changed files with 8 additions and 2 deletions
|
@ -1128,11 +1128,17 @@ class tasklist extends rcube_plugin
|
|||
|
||||
$texts['tasklist.newtask'] = $this->gettext('createfrommail');
|
||||
|
||||
// collect env variables
|
||||
$env = array(
|
||||
'tasklists' => array(),
|
||||
'tasklist_settings' => $this->ui->load_settings(),
|
||||
);
|
||||
|
||||
$this->ui->init_templates();
|
||||
echo $this->api->output->parse('tasklist.taskedit', false, false);
|
||||
echo html::tag('link', array('rel' => 'stylesheet', 'type' => 'text/css', 'href' => $this->url($this->local_skin_path() . '/tagedit.css'), 'nl' => true));
|
||||
echo html::tag('script', array('type' => 'text/javascript'),
|
||||
"rcmail.set_env('tasklists', " . json_encode($this->api->output->env['tasklists']) . ");\n".
|
||||
"rcmail.set_env(" . json_encode($env) . ");\n".
|
||||
"rcmail.add_label(" . json_encode($texts) . ");\n"
|
||||
);
|
||||
exit;
|
||||
|
|
|
@ -57,7 +57,7 @@ function rcube_tasklist(settings)
|
|||
// rcmail.gui_object('attachmentlist', 'attachmentlist');
|
||||
|
||||
ui_loaded = true;
|
||||
me.ui = new rcube_tasklist_ui(settings);
|
||||
me.ui = new rcube_tasklist_ui($.extend(rcmail.env.tasklist_settings, settings));
|
||||
create_from_mail(uid); // start over
|
||||
});
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue