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
- event.target.value = (event.target.value + String.fromCharCode(event.which)).substr(1,2)
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
@@ -1,3 +1,3 @@
1
1
  module WillPickdate
2
- VERSION = "0.9.5"
2
+ VERSION = "0.9.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: will_pickdate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: