Close autocompletion when switching tabs and closing dialog (#3389)
This commit is contained in:
parent
673a5b37e0
commit
a3aa406e05
2 changed files with 13 additions and 2 deletions
|
@ -906,7 +906,6 @@ function rcube_calendar_ui(settings)
|
|||
editform.hide().attr('aria-hidden', 'true').appendTo(document.body);
|
||||
$dialog.dialog("destroy").remove();
|
||||
rcmail.ksearch_blur();
|
||||
rcmail.ksearch_destroy();
|
||||
freebusy_data = {};
|
||||
rcmail.env.comm_path = comm_path_before; // restore comm_path
|
||||
if (op_elem)
|
||||
|
@ -3894,6 +3893,10 @@ function rcube_calendar_ui(settings)
|
|||
$('#edit-attendees-form .attendees-invitebox').show();
|
||||
}
|
||||
}
|
||||
// reset autocompletion on tab change (#3389)
|
||||
if (ui.oldPanel.selector == '#event-panel-attendees' || ui.oldPanel.selector == '#event-panel-resources') {
|
||||
rcmail.ksearch_blur();
|
||||
}
|
||||
}
|
||||
});
|
||||
$('#edit-enddate').datepicker(datepicker_settings);
|
||||
|
|
|
@ -593,7 +593,14 @@ function rcube_tasklist_ui(settings)
|
|||
*/
|
||||
function init_taskedit()
|
||||
{
|
||||
$('#taskedit').tabs();
|
||||
$('#taskedit').tabs({
|
||||
activate: function(event, ui) {
|
||||
// reset autocompletion on tab change (#3389)
|
||||
if (ui.oldPanel.selector == '#taskedit-panel-attendees') {
|
||||
rcmail.ksearch_blur();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var completeness_slider_change = function(e, ui){
|
||||
var v = completeness_slider.slider('value');
|
||||
|
@ -2205,6 +2212,7 @@ function rcube_tasklist_ui(settings)
|
|||
closeOnEscape: false,
|
||||
title: rcmail.gettext((action == 'edit' ? 'edittask' : 'newtask'), 'tasklist'),
|
||||
close: function() {
|
||||
rcmail.ksearch_blur();
|
||||
editform.hide().appendTo(document.body);
|
||||
$dialog.dialog('destroy').remove();
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue