From d1296aab4215e4a704b92e9f3e64e247dfff173b Mon Sep 17 00:00:00 2001 From: Mauro Vanetti Date: Wed, 28 Oct 2015 15:22:49 +0100 Subject: [PATCH 1/2] Avoid overproduction of iframes The iframe used to be created anew every time a print is launched, thus leading to old iframes staying there forever. With this little change, every time a new iframe for printing is created, the previous one is removed. --- jquery.jqprint-0.3.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/jquery.jqprint-0.3.js b/jquery.jqprint-0.3.js index 3b01c47..61b5013 100644 --- a/jquery.jqprint-0.3.js +++ b/jquery.jqprint-0.3.js @@ -1,7 +1,10 @@ -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- // Eros Fratini - eros@recoding.it -// jqprint 0.3 +// (+ little improvement by Mauro Vanetti - posta@maurovanetti.info) // +// jqprint 0.3.1 +// +// - 28/10/2015 - avoid overproduction of iframes // - 19/06/2009 - some new implementations, added Opera support // - 11/05/2009 - first sketch // @@ -28,7 +31,8 @@ } else { - var $iframe = $("