Permalink
Browse files

Merge pull request #3 from damian/master

Add in case to close calendar on blur
  • Loading branch information...
2 parents 26e729b + b1d106d commit 89db68499e77d37aef98d96fb29d8bc74fc1e00c @ded committed Feb 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 calender.js
View
@@ -168,8 +168,8 @@
e.stopPropagation()
calendar.$calendar.css({ left: offset.left, top: offset.top + offset.height}).addClass('active')
})
- .bind('keydown', function (e) {
- if (e.keyCode == 9) {
+ .bind('keydown blur', function (e) {
+ if (e.type == 'blur' || e.keyCode == 9) {
calendar.$calendar.removeClass('active')
}
})

0 comments on commit 89db684

Please sign in to comment.