View | Details | Raw Unified | Return to bug 26172
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (+33 lines)
Lines 4469-4471 div .suggestion_note { Link Here
4469
        border-bottom-right-radius: 5px;
4469
        border-bottom-right-radius: 5px;
4470
    }
4470
    }
4471
}
4471
}
4472
4473
@media print {
4474
    body.modalprinter * {
4475
        visibility: hidden;
4476
    }
4477
4478
    body.modalprinter .modal-dialog.focused {
4479
        position: absolute;
4480
        padding: 0;
4481
        margin: 0;
4482
        left: 0;
4483
        top: 0;
4484
    }
4485
4486
    body.modalprinter .modal-dialog.focused .modal-content {
4487
        border-width: 0;
4488
    }
4489
4490
    body.modalprinter .modal-dialog.focused .modal-content .modal-header .modal-title,
4491
    body.modalprinter .modal-dialog.focused .modal-content .modal-body,
4492
    body.modalprinter .modal-dialog.focused .modal-content .modal-body * {
4493
        visibility: visible;
4494
    }
4495
4496
    body.modalprinter .modal-dialog.focused .modal-content .modal-header,
4497
    body.modalprinter .modal-dialog.focused .modal-content .modal-body {
4498
        padding: 0;
4499
    }
4500
4501
    body.modalprinter .modal-dialog.focused .modal-content .modal-header .modal-title {
4502
        margin-bottom: 20px;
4503
    }
4504
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt (-2 / +18 lines)
Lines 294-300 Link Here
294
294
295
    <!-- Cashup summary modal -->
295
    <!-- Cashup summary modal -->
296
    [% IF register.last_cashup %]
296
    [% IF register.last_cashup %]
297
    <div class="modal" id="cashupSummaryModal" tabindex="-1" role="dialog" aria-labelledby="cashupSummaryLabel">
297
    <div class="modal printable" id="cashupSummaryModal" tabindex="-1" role="dialog" aria-labelledby="cashupSummaryLabel">
298
        <div class="modal-dialog" role="document">
298
        <div class="modal-dialog" role="document">
299
            <div class="modal-content">
299
            <div class="modal-content">
300
                <div class="modal-header">
300
                <div class="modal-header">
Lines 344-349 Link Here
344
                </div> <!-- /.modal-body -->
344
                </div> <!-- /.modal-body -->
345
                <div class="modal-footer">
345
                <div class="modal-footer">
346
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
346
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
347
                    <button type="button" class="printModal btn btn-primary"><i class="fa fa-print"></i> Print</button>
347
                </div> <!-- /.modal-footer -->
348
                </div> <!-- /.modal-footer -->
348
            </div> <!-- /.modal-content -->
349
            </div> <!-- /.modal-content -->
349
        </div> <!-- /.modal-dialog -->
350
        </div> <!-- /.modal-dialog -->
Lines 415-420 Link Here
415
            win.focus();
416
            win.focus();
416
        });
417
        });
417
418
419
        $('.modal.printable').on('shown.bs.modal', function() {
420
            $('.modal-dialog', this).addClass('focused');
421
            $('body').addClass('modalprinter');
422
423
            if ($(this).hasClass('autoprint')) {
424
                window.print();
425
            }
426
        }).on('hidden.bs.modal', function () {
427
            $('.modal-dialog', this).removeClass('focused');
428
            $('body').removeClass('modalprinter');
429
        });
430
431
        $('.printModal').click(function() {
432
            window.print();
433
        });
434
418
        $(document).ready(function() {
435
        $(document).ready(function() {
419
            // http://jqueryui.com/demos/datepicker/#date-range
436
            // http://jqueryui.com/demos/datepicker/#date-range
420
            var dates = $( "#from, #to" ).datepicker({
437
            var dates = $( "#from, #to" ).datepicker({
421
- 

Return to bug 26172