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