summaryrefslogtreecommitdiff
path: root/plugins/tasklist
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-12-10 11:56:56 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-12-10 11:56:56 (GMT)
commitc9622696a1048e645c273fb73c8ee27a609157c1 (patch)
treef004dddedb0d16f8a80d1ebf1d52e8e5771512e8 /plugins/tasklist
parentdf65bb8818a0ccf7ca8d78bc570d095cc09d8fe8 (diff)
downloadroundcubemail-plugins-kolab-c9622696a1048e645c273fb73c8ee27a609157c1.tar.gz
Assign mainaction/delete classes to dialog buttonsroundcubemail-plugins-kolab-3.2.1
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);