Introduction
Introduction Statistics Contact Development Disclaimer Help
datepicker: use only input.date - jscancer - Javascript crap (relatively small)
git clone git://git.codemadness.org/jscancer
Log
Files
Refs
README
LICENSE
---
commit 2f59a2607931adbfda644713662b2eace4c3e220
parent d1a071cccc5a23c1a3a48f826b7e44c1abd53268
Author: Hiltjo Posthuma <[email protected]>
Date: Thu, 1 Jun 2017 19:53:45 +0200
datepicker: use only input.date
Diffstat:
M datepicker/datepicker.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/datepicker/datepicker.js b/datepicker/datepicker.js
@@ -207,5 +207,6 @@ function datepicker_init(input) {
if (!(function() { var input = document.createElement("input"); try { input.ty…
var els = document.getElementsByClassName && document.getElementsByCla…
for (var i = 0; i < els.length; i++)
- datepicker_init(els[i]);
+ if (els[i].tagName.toLowerCase() === "input")
+ datepicker_init(els[i]);
}
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.