No more hard-coded attachment container object (was broken in Larry skin)
This commit is contained in:
parent
c431392119
commit
2a3237c697
3 changed files with 2 additions and 3 deletions
|
@ -1502,6 +1502,7 @@ class calendar extends rcube_plugin
|
|||
"rcmail.set_env('deleteicon', '" . $this->api->output->env['deleteicon'] . "');\n".
|
||||
"rcmail.set_env('cancelicon', '" . $this->api->output->env['cancelicon'] . "');\n".
|
||||
"rcmail.set_env('loadingicon', '" . $this->api->output->env['loadingicon'] . "');\n".
|
||||
"rcmail.gui_object('attachmentlist', '" . $this->ui->attachmentlist_id . "');\n".
|
||||
"rcmail.add_label(" . json_encode($texts) . ");\n"
|
||||
);
|
||||
exit;
|
||||
|
|
|
@ -47,9 +47,6 @@ function rcube_calendar(settings)
|
|||
$.getScript('./plugins/calendar/lib/js/fullcalendar.js'),
|
||||
$.get(rcmail.url('calendar/inlineui'), function(html){ $(document.body).append(html); }, 'html')
|
||||
).then(function() {
|
||||
// register attachments form
|
||||
rcmail.gui_object('attachmentlist', 'attachmentlist');
|
||||
|
||||
// disable attendees feature (autocompletion and stuff is not initialized)
|
||||
for (var c in rcmail.env.calendars)
|
||||
rcmail.env.calendars[c].attendees = false;
|
||||
|
|
|
@ -606,6 +606,7 @@ class calendar_ui
|
|||
$this->rc->output->set_env('loadingicon', $skin_path . $attrib['loadingicon']);
|
||||
|
||||
$this->rc->output->add_gui_object('attachmentlist', $attrib['id']);
|
||||
$this->attachmentlist_id = $attrib['id'];
|
||||
|
||||
return html::tag('ul', $attrib, '', html::$common_attrib);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue