Skip to content

Commit

Permalink
Allow submit with enter if results not showing
Browse files Browse the repository at this point in the history
proto (+1 squashed commit)
Squashed commits:
[fe82868] Allow submit with enter if results not showing

jQuery
  • Loading branch information
danez authored and Daniel Tschinder committed Feb 12, 2014
1 parent dde5799 commit 21913a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coffee/chosen.jquery.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ class Chosen extends AbstractChosen
@mouse_on_container = false
break
when 13
evt.preventDefault()
evt.preventDefault() if this.results_showing
break
when 38
evt.preventDefault()
Expand Down
2 changes: 1 addition & 1 deletion coffee/chosen.proto.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ class @Chosen extends AbstractChosen
@mouse_on_container = false
break
when 13
evt.preventDefault()
evt.preventDefault() if this.results_showing
break
when 38
evt.preventDefault()
Expand Down

0 comments on commit 21913a8

Please sign in to comment.