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 4488-4490 div .suggestion_note { Link Here
4488
        border-bottom-right-radius: 5px;
4488
        border-bottom-right-radius: 5px;
4489
    }
4489
    }
4490
}
4490
}
4491
4492
@media print {
4493
    body.modalprinter * {
4494
        visibility: hidden;
4495
    }
4496
4497
    body.modalprinter .modal-dialog.focused {
4498
        position: absolute;
4499
        padding: 0;
4500
        margin: 0;
4501
        left: 0;
4502
        top: 0;
4503
    }
4504
4505
    body.modalprinter .modal-dialog.focused .modal-content {
4506
        border-width: 0;
4507
    }
4508
4509
    body.modalprinter .modal-dialog.focused .modal-content .modal-header .modal-title,
4510
    body.modalprinter .modal-dialog.focused .modal-content .modal-body,
4511
    body.modalprinter .modal-dialog.focused .modal-content .modal-body * {
4512
        visibility: visible;
4513
    }
4514
4515
    body.modalprinter .modal-dialog.focused .modal-content .modal-header,
4516
    body.modalprinter .modal-dialog.focused .modal-content .modal-body {
4517
        padding: 0;
4518
    }
4519
4520
    body.modalprinter .modal-dialog.focused .modal-content .modal-header .modal-title {
4521
        margin-bottom: 20px;
4522
    }
4523
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt (-2 / +18 lines)
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
- 

Return to bug 26172