|
|
@ -306,7 +306,7 @@ |
|
|
|
|
|
|
|
<!-- Cashup summary modal --> |
|
|
|
[% IF register.last_cashup %] |
|
|
|
<div class="modal" id="cashupSummaryModal" tabindex="-1" role="dialog" aria-labelledby="cashupSummaryLabel"> |
|
|
|
<div class="modal printable" id="cashupSummaryModal" tabindex="-1" role="dialog" aria-labelledby="cashupSummaryLabel"> |
|
|
|
<div class="modal-dialog" role="document"> |
|
|
|
<div class="modal-content"> |
|
|
|
<div class="modal-header"> |
|
|
@ -356,6 +356,7 @@ |
|
|
|
</div> <!-- /.modal-body --> |
|
|
|
<div class="modal-footer"> |
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> |
|
|
|
<button type="button" class="printModal btn btn-primary"><i class="fa fa-print"></i> Print</button> |
|
|
|
</div> <!-- /.modal-footer --> |
|
|
|
</div> <!-- /.modal-content --> |
|
|
|
</div> <!-- /.modal-dialog --> |
|
|
@ -427,6 +428,22 @@ |
|
|
|
win.focus(); |
|
|
|
}); |
|
|
|
|
|
|
|
$('.modal.printable').on('shown.bs.modal', function() { |
|
|
|
$('.modal-dialog', this).addClass('focused'); |
|
|
|
$('body').addClass('modalprinter'); |
|
|
|
|
|
|
|
if ($(this).hasClass('autoprint')) { |
|
|
|
window.print(); |
|
|
|
} |
|
|
|
}).on('hidden.bs.modal', function () { |
|
|
|
$('.modal-dialog', this).removeClass('focused'); |
|
|
|
$('body').removeClass('modalprinter'); |
|
|
|
}); |
|
|
|
|
|
|
|
$('.printModal').click(function() { |
|
|
|
window.print(); |
|
|
|
}); |
|
|
|
|
|
|
|
$(document).ready(function() { |
|
|
|
// http://jqueryui.com/demos/datepicker/#date-range |
|
|
|
var dates = $( "#from, #to" ).datepicker({ |
|
|
|