|
Lines 41-52
$(document).ready(function () {
Link Here
|
| 41 |
win.document.write(title); |
41 |
win.document.write(title); |
| 42 |
win.document.write(contents); |
42 |
win.document.write(contents); |
| 43 |
win.document.close(); |
43 |
win.document.close(); |
| 44 |
win.focus(); |
44 |
win.addEventListener( 'afterprint', function () { |
| 45 |
win.print(); |
45 |
win.addEventListener( 'focus', function () { |
| 46 |
win.onafterprint = function () { |
46 |
win.close(); |
|
|
47 |
}); |
| 47 |
win.close(); |
48 |
win.close(); |
| 48 |
} |
49 |
}); |
| 49 |
setTimeout('window.close()', 1000); //Hack from Chrome < 63 |
50 |
win.print(); |
| 50 |
} |
51 |
} |
| 51 |
|
52 |
|
| 52 |
// Set focused on printable modals on open and autoprint if required |
53 |
// Set focused on printable modals on open and autoprint if required |
| 53 |
- |
|
|