Support MT autocompletion
This commit is contained in:
parent
2cc30ed5ac
commit
8db4ed1950
2 changed files with 13 additions and 2 deletions
|
@ -198,6 +198,9 @@ class calendar extends rcube_plugin
|
|||
|
||||
$this->rc->output->add_label('low','normal','high','delete','cancel','uploading','noemailwarning');
|
||||
|
||||
// initialize attendees autocompletion
|
||||
rcube_autocomplete_init();
|
||||
|
||||
$this->rc->output->send("calendar.calendar");
|
||||
}
|
||||
|
||||
|
|
|
@ -1888,7 +1888,15 @@ function rcube_calendar_ui(settings)
|
|||
$('#edit-recurrence-enddate').datepicker(datepicker_settings).click(function(){ $("#edit-recurrence-repeat-until").prop('checked', true) });
|
||||
|
||||
// init attendees autocompletion
|
||||
rcmail.init_address_input_events($('#edit-attendee-name'));
|
||||
var ac_props;
|
||||
// parallel autocompletion
|
||||
if (rcmail.env.autocomplete_threads > 0) {
|
||||
ac_props = {
|
||||
threads: rcmail.env.autocomplete_threads,
|
||||
sources: rcmail.env.autocomplete_sources,
|
||||
};
|
||||
}
|
||||
rcmail.init_address_input_events($('#edit-attendee-name'), ac_props);
|
||||
rcmail.addEventListener('autocomplete_insert', function(e){ $('#edit-attendee-add').click(); });
|
||||
|
||||
$('#edit-attendee-add').click(function(){
|
||||
|
|
Loading…
Add table
Reference in a new issue