Code cleanup + indentation fixes
This commit is contained in:
parent
42ffd55a62
commit
b26c2a0830
4 changed files with 23 additions and 25 deletions
|
@ -62,7 +62,7 @@ libkolab_audittrail.object_history_dialog = function(p)
|
|||
open: function() {
|
||||
$dialog.attr('aria-hidden', 'false');
|
||||
setTimeout(function(){
|
||||
$dialog.parent().find('.ui-button:not(.ui-dialog-titlebar-close)').first().focus();
|
||||
$dialog.parent().find('.ui-dialog-buttonpane .ui-button').first().focus();
|
||||
}, 5);
|
||||
},
|
||||
close: function() {
|
||||
|
|
|
@ -51,8 +51,6 @@ $labels['assignedto'] = 'Assigned to';
|
|||
$labels['created'] = 'Created';
|
||||
$labels['changed'] = 'Last Modified';
|
||||
$labels['taskoptions'] = 'Options';
|
||||
$labels['taskhistory'] = 'History';
|
||||
$labels['compare'] = 'Compare';
|
||||
|
||||
$labels['all'] = 'All';
|
||||
$labels['flagged'] = 'Flagged';
|
||||
|
@ -155,16 +153,15 @@ $labels['itipcancelmailbody'] = "*\$title*\n\nDue: \$date\n\nAssignees: \$attend
|
|||
$labels['saveintasklist'] = 'save in ';
|
||||
|
||||
// history dialog
|
||||
$labels['taskhistory'] = 'History';
|
||||
$labels['objectchangelog'] = 'Change History';
|
||||
$labels['objectdiff'] = 'Changes from $rev1 to $rev2';
|
||||
|
||||
$labels['actionappend'] = 'Saved';
|
||||
$labels['actionmove'] = 'Moved';
|
||||
$labels['actiondelete'] = 'Deleted';
|
||||
$labels['compare'] = 'Compare';
|
||||
$labels['showrevision'] = 'Show this version';
|
||||
$labels['restore'] = 'Restore this version';
|
||||
|
||||
$labels['objectnotfound'] = 'Failed to load task data';
|
||||
$labels['objectchangelognotavailable'] = 'Change history is not available for this task';
|
||||
$labels['objectdiffnotavailable'] = 'No comparison possible for the selected revisions';
|
||||
|
|
|
@ -394,9 +394,10 @@ class tasklist extends rcube_plugin
|
|||
array_walk($data, function(&$change) use ($lib, $dtformat) {
|
||||
if ($change['date']) {
|
||||
$dt = $lib->adjust_timezone($change['date']);
|
||||
if ($dt instanceof DateTime)
|
||||
if ($dt instanceof DateTime) {
|
||||
$change['date'] = $this->rc->format_date($dt, $dtformat, false);
|
||||
}
|
||||
}
|
||||
});
|
||||
$this->rc->output->command('plugin.task_render_changelog', $data);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue