fix: firefox iframe

This commit is contained in:
Bengt Brodersen 2016-02-16 15:42:40 +01:00
parent 2459279871
commit f35cf0c500

View File

@ -51,9 +51,13 @@
// add overlay frame
var appFrame = createOverlayFrame();
$("body").append(appFrame);
// add convinient fields
appFrame.window = appFrame.contentWindow;
appFrame.document = appFrame.window.document;
appFrame.document.open();
appFrame.document.close();
global.appFrame = appFrame;
// add print dialog content
@ -66,6 +70,8 @@
// add convinient fields
printFrame.window = printFrame.contentWindow;
printFrame.document = printFrame.window.document;
printFrame.document.open();
printFrame.document.close();
global.printFrame = printFrame;
// add listeners to redraw crads on print event