Fix working and button order

This commit is contained in:
Thomas Bruederli 2014-02-05 16:05:50 +01:00
parent 1cb7a66b05
commit 7a883384cd
2 changed files with 9 additions and 7 deletions

View file

@ -49,7 +49,7 @@ $labels['editlist'] = 'Edit list';
$labels['createlist'] = 'Add list';
$labels['listactions'] = 'List options...';
$labels['listname'] = 'Name';
$labels['showalarms'] = 'Show alarms';
$labels['showalarms'] = 'Show reminders';
$labels['import'] = 'Import';
$labels['viewoptions'] = 'View options';
$labels['focusview'] = 'View only this list';

View file

@ -1465,12 +1465,7 @@ function rcube_tasklist_ui(settings)
if (!rec || rec.readonly || rcmail.busy)
return false;
var html, buttons = [{
text: rcmail.gettext('cancel', 'tasklist'),
click: function() {
$(this).dialog('close');
}
}];
var html, buttons = [];
if (rec.children && rec.children.length) {
html = rcmail.gettext('deleteparenttasktconfirm','tasklist');
@ -1500,6 +1495,13 @@ function rcube_tasklist_ui(settings)
});
}
buttons.push({
text: rcmail.gettext('cancel', 'tasklist'),
click: function() {
$(this).dialog('close');
}
});
var $dialog = $('<div>').html(html);
$dialog.dialog({
modal: true,