easyprintand 1.0.6 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{prindiv.js → index.js} +14 -6
- package/package.json +1 -1
package/{prindiv.js → index.js}
RENAMED
|
@@ -71,6 +71,16 @@
|
|
|
71
71
|
{
|
|
72
72
|
|
|
73
73
|
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
var $printSource = document.querySelector("div#" + id_elemento );
|
|
77
|
+
|
|
78
|
+
if (!$printSource){
|
|
79
|
+
console.log("No prindiv no puede imprimir por que \"div#" + id_elemento + "\" No existe");
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
74
84
|
|
|
75
85
|
var modos = modo;
|
|
76
86
|
var counter = 0;
|
|
@@ -113,9 +123,7 @@
|
|
|
113
123
|
|
|
114
124
|
|
|
115
125
|
|
|
116
|
-
|
|
117
|
-
var $printSource = document.querySelector("div#" + id_elemento );
|
|
118
|
-
|
|
126
|
+
|
|
119
127
|
|
|
120
128
|
var PrintAreaWindow = getPrintWindow();
|
|
121
129
|
|
|
@@ -154,9 +162,9 @@
|
|
|
154
162
|
|
|
155
163
|
|
|
156
164
|
|
|
157
|
-
//let HTML = docType() + "<html>" + getHead() + getBody(
|
|
165
|
+
//let HTML = docType() + "<html>" + getHead() + getBody( $ele ) + "</html>";
|
|
158
166
|
|
|
159
|
-
let HTML = "<html>" + getHead() + getBody(
|
|
167
|
+
let HTML = "<html>" + getHead() + getBody( $ele ) + "</html>";
|
|
160
168
|
|
|
161
169
|
|
|
162
170
|
PADocument.write( HTML );
|
|
@@ -343,4 +351,4 @@
|
|
|
343
351
|
|
|
344
352
|
|
|
345
353
|
|
|
346
|
-
|
|
354
|
+
|