will_pickdate 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -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
|