will_pickdate 0.9.5 → 0.9.6
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.
@@ -493,7 +493,8 @@
|
|
493
493
|
//down arrow
|
494
494
|
dy = -1;
|
495
495
|
} else if (48 <= event.which && event.which <= 57) {
|
496
|
-
|
496
|
+
aux = event.target.value + String.fromCharCode(event.which)
|
497
|
+
event.target.value = (aux).substr(Math.max(aux.length - 2, 0),2)
|
497
498
|
} else if (event.which == 9 || event.which == 46 || event.which == 8) {
|
498
499
|
//allow tab to skip to next
|
499
500
|
//allow delete and backspace to have normal behaviour
|