Skip to content

Commit

Permalink
Tabbed focusing on custom date will still use custom date js, addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
krand7 committed Mar 3, 2015
1 parent 4d458a0 commit e26ee79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/cleantheme/surveyAnimation.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,13 @@
if e.keyCode is 38 or e.keyCode is 40 or e.keyCode is 13
e.preventDefault()
# Specifically targeting custom date input
if $(".survey-container.active").find(".survey-custom-date").is(":focus")
if $(".survey-custom-date").is(":focus")
# Allow regular command and left/right keys
if e.metaKey or e.keyCode is 37 or e.keyCode is 39
return
# Ensure proper blurring of date input
else if e.keyCode is 13
$(".survey-container.active").find(".survey-custom-date").blur()
$(".survey-custom-date").blur()
return
# Autocomplete date when tab or / is pressed
else if e.keyCode is 9 or e.keyCode is 191
Expand Down

0 comments on commit e26ee79

Please sign in to comment.