Enable printing for new and unsaved notes, too
This commit is contained in:
parent
8f0c77554c
commit
8ebc6cfd30
2 changed files with 6 additions and 1 deletions
|
@ -277,6 +277,7 @@ function rcube_kolab_notes_ui(settings)
|
||||||
changed: rcmail.gettext('now', 'kolab_notes')
|
changed: rcmail.gettext('now', 'kolab_notes')
|
||||||
}
|
}
|
||||||
render_note(me.selected_note);
|
render_note(me.selected_note);
|
||||||
|
rcmail.enable_command('print', true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ui_loading = rcmail.set_busy(true, 'loading');
|
ui_loading = rcmail.set_busy(true, 'loading');
|
||||||
|
@ -728,7 +729,7 @@ function rcube_kolab_notes_ui(settings)
|
||||||
printwin.document.title = data.title;
|
printwin.document.title = data.title;
|
||||||
$('#notetitle', printwin.document).html(Q(data.title));
|
$('#notetitle', printwin.document).html(Q(data.title));
|
||||||
$('#notebody', printwin.document).html(data.description);
|
$('#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));
|
$('#notecreated', printwin.document).html(Q(me.selected_note.created));
|
||||||
$('#notechanged', printwin.document).html(Q(me.selected_note.changed));
|
$('#notechanged', printwin.document).html(Q(me.selected_note.changed));
|
||||||
printwin.print();
|
printwin.print();
|
||||||
|
|
|
@ -24,6 +24,10 @@ body {
|
||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#notedetailstitle #notetags .tag {
|
||||||
|
margin-right: 0.8em;
|
||||||
|
}
|
||||||
|
|
||||||
#notedetailstitle .dates {
|
#notedetailstitle .dates {
|
||||||
margin-bottom: 0.2em;
|
margin-bottom: 0.2em;
|
||||||
color: #999;
|
color: #999;
|
||||||
|
|
Loading…
Add table
Reference in a new issue