Fix working and button order
This commit is contained in:
parent
1cb7a66b05
commit
7a883384cd
2 changed files with 9 additions and 7 deletions
|
@ -49,7 +49,7 @@ $labels['editlist'] = 'Edit list';
|
||||||
$labels['createlist'] = 'Add list';
|
$labels['createlist'] = 'Add list';
|
||||||
$labels['listactions'] = 'List options...';
|
$labels['listactions'] = 'List options...';
|
||||||
$labels['listname'] = 'Name';
|
$labels['listname'] = 'Name';
|
||||||
$labels['showalarms'] = 'Show alarms';
|
$labels['showalarms'] = 'Show reminders';
|
||||||
$labels['import'] = 'Import';
|
$labels['import'] = 'Import';
|
||||||
$labels['viewoptions'] = 'View options';
|
$labels['viewoptions'] = 'View options';
|
||||||
$labels['focusview'] = 'View only this list';
|
$labels['focusview'] = 'View only this list';
|
||||||
|
|
|
@ -1465,12 +1465,7 @@ function rcube_tasklist_ui(settings)
|
||||||
if (!rec || rec.readonly || rcmail.busy)
|
if (!rec || rec.readonly || rcmail.busy)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
var html, buttons = [{
|
var html, buttons = [];
|
||||||
text: rcmail.gettext('cancel', 'tasklist'),
|
|
||||||
click: function() {
|
|
||||||
$(this).dialog('close');
|
|
||||||
}
|
|
||||||
}];
|
|
||||||
|
|
||||||
if (rec.children && rec.children.length) {
|
if (rec.children && rec.children.length) {
|
||||||
html = rcmail.gettext('deleteparenttasktconfirm','tasklist');
|
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);
|
var $dialog = $('<div>').html(html);
|
||||||
$dialog.dialog({
|
$dialog.dialog({
|
||||||
modal: true,
|
modal: true,
|
||||||
|
|
Loading…
Add table
Reference in a new issue