easyprintand 1.0.7 → 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/index.js +12 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -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
|
|
|
@@ -343,4 +351,4 @@
|
|
|
343
351
|
|
|
344
352
|
|
|
345
353
|
|
|
346
|
-
|
|
354
|
+
|