Enable printing for new and unsaved notes, too

This commit is contained in:
Thomas Bruederli 2014-04-09 19:50:01 +02:00
parent 8f0c77554c
commit 8ebc6cfd30
2 changed files with 6 additions and 1 deletions

View file

@ -277,6 +277,7 @@ function rcube_kolab_notes_ui(settings)
changed: rcmail.gettext('now', 'kolab_notes')
}
render_note(me.selected_note);
rcmail.enable_command('print', true);
}
else {
ui_loading = rcmail.set_busy(true, 'loading');
@ -728,7 +729,7 @@ function rcube_kolab_notes_ui(settings)
printwin.document.title = data.title;
$('#notetitle', printwin.document).html(Q(data.title));
$('#notebody', printwin.document).html(data.description);
$('#notetags', printwin.document).html('<span class="tag">' + data.categories.join('</span>, <span class="tag">') + '</span>');
$('#notetags', printwin.document).html('<span class="tag">' + data.categories.join('</span><span class="tag">') + '</span>');
$('#notecreated', printwin.document).html(Q(me.selected_note.created));
$('#notechanged', printwin.document).html(Q(me.selected_note.changed));
printwin.print();

View file

@ -24,6 +24,10 @@ body {
color: #666;
}
#notedetailstitle #notetags .tag {
margin-right: 0.8em;
}
#notedetailstitle .dates {
margin-bottom: 0.2em;
color: #999;