Fix compatibility with jQuery UI 1.10 API

This commit is contained in:
Thomas Bruederli 2014-06-19 10:58:04 +02:00
parent efecba6675
commit f1550e5f71

View file

@ -1289,7 +1289,7 @@ function rcube_tasklist_ui(settings)
closeOnEscape: true, closeOnEscape: true,
title: rcmail.gettext('taskdetails', 'tasklist'), title: rcmail.gettext('taskdetails', 'tasklist'),
open: function() { open: function() {
$dialog.parent().find('.ui-button').first().focus(); $dialog.parent().find('.ui-button:not(.ui-dialog-titlebar-close)').first().focus();
}, },
close: function() { close: function() {
$dialog.dialog('destroy').appendTo(document.body); $dialog.dialog('destroy').appendTo(document.body);
@ -1356,7 +1356,7 @@ function rcube_tasklist_ui(settings)
animSpeed: 100, animSpeed: 100,
allowEdit: false, allowEdit: false,
checkNewEntriesCaseSensitive: false, checkNewEntriesCaseSensitive: false,
autocompleteOptions: { source: tags, minLength: 0, noCheck: true }, autocompleteOptions: { source: tags, minLength: 0, noCheck: true, appendTo:'#taskedit' },
texts: { removeLinkTitle: rcmail.gettext('removetag', 'tasklist') } texts: { removeLinkTitle: rcmail.gettext('removetag', 'tasklist') }
}); });
@ -1384,7 +1384,7 @@ function rcube_tasklist_ui(settings)
$('#taskedit-tab-attachments')[(list.attachments||rec.attachments?'show':'hide')](); $('#taskedit-tab-attachments')[(list.attachments||rec.attachments?'show':'hide')]();
// activate the first tab // activate the first tab
$('#taskedit').tabs('select', 0); $('#taskedit').tabs('option', 'active', 0);
// define dialog buttons // define dialog buttons
var buttons = {}; var buttons = {};