app/assets/javascripts/will_pickdate.js in will_pickdate-0.9.3 vs app/assets/javascripts/will_pickdate.js in will_pickdate-0.9.4
- old
+ new
@@ -490,11 +490,14 @@
//up arrow
dy = 1;
} else if (event.which == 40) {
//down arrow
dy = -1;
- } else if (48 <= event.which <= 57) {
+ } else if (48 <= event.which && event.which <= 57) {
event.target.value = (event.target.value + String.fromCharCode(event.which)).substr(1,2)
+ } else if (event.which == 9 ) {
+ //allow tab to skip to next
+ return;
}
$.proxy(f, this)(event, null, null, dy);
},
renderTime: function() {
\ No newline at end of file