Lines 306-312
Link Here
|
306 |
|
306 |
|
307 |
<!-- Cashup summary modal --> |
307 |
<!-- Cashup summary modal --> |
308 |
[% IF register.last_cashup %] |
308 |
[% IF register.last_cashup %] |
309 |
<div class="modal" id="cashupSummaryModal" tabindex="-1" role="dialog" aria-labelledby="cashupSummaryLabel"> |
309 |
<div class="modal printable" id="cashupSummaryModal" tabindex="-1" role="dialog" aria-labelledby="cashupSummaryLabel"> |
310 |
<div class="modal-dialog" role="document"> |
310 |
<div class="modal-dialog" role="document"> |
311 |
<div class="modal-content"> |
311 |
<div class="modal-content"> |
312 |
<div class="modal-header"> |
312 |
<div class="modal-header"> |
Lines 356-361
Link Here
|
356 |
</div> <!-- /.modal-body --> |
356 |
</div> <!-- /.modal-body --> |
357 |
<div class="modal-footer"> |
357 |
<div class="modal-footer"> |
358 |
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> |
358 |
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> |
|
|
359 |
<button type="button" class="printModal btn btn-primary"><i class="fa fa-print"></i> Print</button> |
359 |
</div> <!-- /.modal-footer --> |
360 |
</div> <!-- /.modal-footer --> |
360 |
</div> <!-- /.modal-content --> |
361 |
</div> <!-- /.modal-content --> |
361 |
</div> <!-- /.modal-dialog --> |
362 |
</div> <!-- /.modal-dialog --> |
Lines 427-432
Link Here
|
427 |
win.focus(); |
428 |
win.focus(); |
428 |
}); |
429 |
}); |
429 |
|
430 |
|
|
|
431 |
$('.modal.printable').on('shown.bs.modal', function() { |
432 |
$('.modal-dialog', this).addClass('focused'); |
433 |
$('body').addClass('modalprinter'); |
434 |
|
435 |
if ($(this).hasClass('autoprint')) { |
436 |
window.print(); |
437 |
} |
438 |
}).on('hidden.bs.modal', function () { |
439 |
$('.modal-dialog', this).removeClass('focused'); |
440 |
$('body').removeClass('modalprinter'); |
441 |
}); |
442 |
|
443 |
$('.printModal').click(function() { |
444 |
window.print(); |
445 |
}); |
446 |
|
430 |
$(document).ready(function() { |
447 |
$(document).ready(function() { |
431 |
// http://jqueryui.com/demos/datepicker/#date-range |
448 |
// http://jqueryui.com/demos/datepicker/#date-range |
432 |
var dates = $( "#from, #to" ).datepicker({ |
449 |
var dates = $( "#from, #to" ).datepicker({ |
433 |
- |
|
|