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