2989 |
02 Dec 14 |
olle |
1 |
|
2989 |
02 Dec 14 |
olle |
var Print = function() |
2989 |
02 Dec 14 |
olle |
3 |
{ |
2989 |
02 Dec 14 |
olle |
var print = {}; |
2989 |
02 Dec 14 |
olle |
var internal = {}; |
2989 |
02 Dec 14 |
olle |
6 |
|
2989 |
02 Dec 14 |
olle |
print.initPage = function() |
2989 |
02 Dec 14 |
olle |
8 |
{ |
2989 |
02 Dec 14 |
olle |
document.getElementById('print-button').addEventListener('click', internal.doPrint, false); |
3735 |
10 Feb 16 |
olle |
window.opener.LabEnv.finalizePrint(window); |
2989 |
02 Dec 14 |
olle |
11 |
} |
2989 |
02 Dec 14 |
olle |
12 |
|
2989 |
02 Dec 14 |
olle |
internal.doPrint = function() |
2989 |
02 Dec 14 |
olle |
14 |
{ |
2989 |
02 Dec 14 |
olle |
window.print(); |
2989 |
02 Dec 14 |
olle |
16 |
} |
2989 |
02 Dec 14 |
olle |
17 |
|
2989 |
02 Dec 14 |
olle |
18 |
|
2989 |
02 Dec 14 |
olle |
return print; |
2989 |
02 Dec 14 |
olle |
20 |
}(); |
2989 |
02 Dec 14 |
olle |
21 |
|
2989 |
02 Dec 14 |
olle |
document.addEventListener('DOMContentLoaded', Print.initPage, false); |
2989 |
02 Dec 14 |
olle |
23 |
|