summaryrefslogtreecommitdiff
path: root/lib/viewers
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-06-12 13:30:35 (GMT)
committerAleksander Machniak <alec@alec.pl>2013-06-12 13:30:35 (GMT)
commit00242de66b483749f389c33db4c6fd0b727a78c4 (patch)
tree6b94751b84a113d1387cedbf15b9b0a0adde0044 /lib/viewers
parent1dd7226c4dbb2532ac7f1fffe9876340ff3a8e2d (diff)
downloadkolab-chwala-00242de66b483749f389c33db4c6fd0b727a78c4.tar.gz
Make sure print frame is hidden
Diffstat (limited to 'lib/viewers')
-rw-r--r--lib/viewers/text/file_editor.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/viewers/text/file_editor.js b/lib/viewers/text/file_editor.js
index 72d2a66..4a9449c 100644
--- a/lib/viewers/text/file_editor.js
+++ b/lib/viewers/text/file_editor.js
@@ -40,6 +40,7 @@ function file_editor()
// we'd copy the content to a hidden iframe
var iframe = document.createElement('iframe');
+ iframe.style.display = 'none';
iframe.onload = function() { iframe.focus(); iframe.contentWindow.print(); };
iframe.src = this.href + '&force-type=text/plain';