summaryrefslogtreecommitdiff
path: root/plugins/tasklist
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/tasklist')
-rw-r--r--plugins/tasklist/tasklist.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/tasklist/tasklist.js b/plugins/tasklist/tasklist.js
index f107a39..9f02353 100644
--- a/plugins/tasklist/tasklist.js
+++ b/plugins/tasklist/tasklist.js
@@ -1937,6 +1937,7 @@ function rcube_tasklist_ui(settings)
buttons.push({
text: rcmail.gettext('delete','tasklist'),
+ 'class':'delete',
click: function() {
if (delete_task(me.selected_task.id))
$dialog.dialog('close');
@@ -2240,6 +2241,9 @@ function rcube_tasklist_ui(settings)
resizable: (!bw.ie6 && !bw.ie7), // disable for performance reasons
closeOnEscape: false,
title: rcmail.gettext((action == 'edit' ? 'edittask' : 'newtask'), 'tasklist'),
+ open: function() {
+ $dialog.parent().find('.ui-button:not(.ui-dialog-titlebar-close)').first().addClass('mainaction');
+ },
close: function() {
rcmail.ksearch_blur();
editform.hide().appendTo(document.body);