Lines 407-429
Link Here
|
407 |
win.focus(); |
407 |
win.focus(); |
408 |
}); |
408 |
}); |
409 |
|
409 |
|
410 |
$('.modal.printable').on('shown.bs.modal', function() { |
|
|
411 |
$('.modal-dialog', this).addClass('focused'); |
412 |
$('body').addClass('modalprinter'); |
413 |
|
414 |
if ($(this).hasClass('autoprint')) { |
415 |
window.print(); |
416 |
} |
417 |
}).on('hidden.bs.modal', function () { |
418 |
$('.modal-dialog', this).removeClass('focused'); |
419 |
$('body').removeClass('modalprinter'); |
420 |
}); |
421 |
|
422 |
$('.printModal').click(function() { |
423 |
window.print(); |
424 |
}); |
425 |
|
426 |
|
427 |
var cashups_table_url = "/api/v1/cash_registers/[% register.id | html %]/cashups?"; |
410 |
var cashups_table_url = "/api/v1/cash_registers/[% register.id | html %]/cashups?"; |
428 |
var cashups_table = $("#table_cashups").kohaTable({ |
411 |
var cashups_table = $("#table_cashups").kohaTable({ |
429 |
"ajax": { |
412 |
"ajax": { |
430 |
- |
|
|