From 598fb0fcaae62c73c252e6eb9b6c27a8f7bc2819 Mon Sep 17 00:00:00 2001 From: Zac Viandier Date: Tue, 11 Aug 2015 21:59:24 +0200 Subject: [PATCH] Add the possibility to pass a string to add attributes to the balise --- js/jquery.printarea.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/jquery.printarea.js b/js/jquery.printarea.js index 9713ea3..78bee82 100644 --- a/js/jquery.printarea.js +++ b/js/jquery.printarea.js @@ -15,6 +15,7 @@ * {OPTIONS} | [type] | (default), values | Explanation * --------- | --------- | ---------------------- | ----------- * @mode | [string] | (iframe),popup | printable window is either iframe or browser popup + * @html | [string] | ('') | attribute for the html balise (like moznomarginboxes mozdisallowselectionprint to remove header and footer on the page) * @popHt | [number] | (500) | popup window height * @popWd | [number] | (400) | popup window width * @popX | [number] | (500) | popup window screen X position @@ -40,6 +41,7 @@ popClose : false, extraCss : '', extraHead : '', + html : '', retainAttr : ["id","class","style"] }; var settings = {};//global settings @@ -77,7 +79,7 @@ }, write : function ( PADocument, $ele ) { PADocument.open(); - PADocument.write( PrintArea.docType() + "" + PrintArea.getHead() + PrintArea.getBody( $ele ) + "" ); + PADocument.write( PrintArea.docType() + "" + PrintArea.getHead() + PrintArea.getBody( $ele ) + "" ); PADocument.close(); }, docType : function() {