agenda: go back on page break management.

This commit is contained in:
Mikaël Ates 2013-06-20 16:03:09 +02:00
parent 5147d5fdfa
commit 681cca4625
2 changed files with 9 additions and 3 deletions

View File

@ -62,9 +62,10 @@
{% endfor %}
</tbody>
</table>
<div class="summary">
<div class="pagebreak"></div>
</div>
</div> <!-- .worker-agenda -->
<br/>
<div class="pagebreak"></div>
{% endif %}
{% endfor %}
@ -73,7 +74,7 @@
/* Control page break on last printed page */
function update_page_break() {
$('.pagebreak').css('page-break-after', 'always');
$('.pagebreak').not('.screen-only').last().css('page-break-after', 'avoid');
$('.pagebreak').not('.screen-only').last().css('page-break-before', 'avoid');
}
update_page_break();
$('.printable').on('change', function () {

View File

@ -35,6 +35,11 @@ div#content div.worker-agenda h2 {
background: none;
}
div.worker-agenda {
clear: both;
page-break-after: always;
}
div.worker-agenda table{
font-size: 70%;
}