2612 |
29 Aug 14 |
nicklas |
1 |
|
2612 |
29 Aug 14 |
nicklas |
var Print = function() |
2612 |
29 Aug 14 |
nicklas |
3 |
{ |
2612 |
29 Aug 14 |
nicklas |
var print = {}; |
2612 |
29 Aug 14 |
nicklas |
var internal = {}; |
2612 |
29 Aug 14 |
nicklas |
6 |
|
2612 |
29 Aug 14 |
nicklas |
print.initPage = function() |
2612 |
29 Aug 14 |
nicklas |
8 |
{ |
2612 |
29 Aug 14 |
nicklas |
document.getElementById('print-button').addEventListener('click', internal.doPrint, false); |
2612 |
29 Aug 14 |
nicklas |
window.opener.Reggie.finalizePrint(window); |
2612 |
29 Aug 14 |
nicklas |
11 |
} |
2612 |
29 Aug 14 |
nicklas |
12 |
|
2612 |
29 Aug 14 |
nicklas |
internal.doPrint = function() |
2612 |
29 Aug 14 |
nicklas |
14 |
{ |
2612 |
29 Aug 14 |
nicklas |
window.print(); |
2612 |
29 Aug 14 |
nicklas |
16 |
} |
2612 |
29 Aug 14 |
nicklas |
17 |
|
2612 |
29 Aug 14 |
nicklas |
18 |
|
2612 |
29 Aug 14 |
nicklas |
return print; |
2612 |
29 Aug 14 |
nicklas |
20 |
}(); |
2612 |
29 Aug 14 |
nicklas |
21 |
|
2612 |
29 Aug 14 |
nicklas |
document.addEventListener('DOMContentLoaded', Print.initPage, false); |
2612 |
29 Aug 14 |
nicklas |
23 |
|