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 4491-4493 div .suggestion_note { Link Here
4491
        border-bottom-right-radius: 5px;
4491
        border-bottom-right-radius: 5px;
4492
    }
4492
    }
4493
}
4493
}
4494
4495
@media print {
4496
    body.modalprinter * {
4497
        visibility: hidden;
4498
    }
4499
4500
    body.modalprinter .modal-dialog.focused {
4501
        position: absolute;
4502
        padding: 0;
4503
        margin: 0;
4504
        left: 0;
4505
        top: 0;
4506
    }
4507
4508
    body.modalprinter .modal-dialog.focused .modal-content {
4509
        border-width: 0;
4510
    }
4511
4512
    body.modalprinter .modal-dialog.focused .modal-content .modal-header .modal-title,
4513
    body.modalprinter .modal-dialog.focused .modal-content .modal-body,
4514
    body.modalprinter .modal-dialog.focused .modal-content .modal-body * {
4515
        visibility: visible;
4516
    }
4517
4518
    body.modalprinter .modal-dialog.focused .modal-content .modal-header,
4519
    body.modalprinter .modal-dialog.focused .modal-content .modal-body {
4520
        padding: 0;
4521
    }
4522
4523
    body.modalprinter .modal-dialog.focused .modal-content .modal-header .modal-title {
4524
        margin-bottom: 20px;
4525
    }
4526
}
(-)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