|
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.addEventListener("afterprint", function () { |
| 45 |
win.addEventListener("focus", function () { |
| 46 |
win.close(); |
| 47 |
}); |
| 48 |
win.close(); |
| 49 |
}); |
| 43 |
win.print(); |
50 |
win.print(); |
| 44 |
win.close(); |
|
|
| 45 |
} |
51 |
} |
| 46 |
|
52 |
|
| 47 |
// Set focused on printable modals on open and autoprint if required |
53 |
// Set focused on printable modals on open and autoprint if required |
| 48 |
- |
|
|