History

Fix autofocus behavior

Thibaut Courouble committed 10 years ago

Commit 6f169451 parent 71491c51 file · +2 −1Browse files

Unified · Split

assets/javascripts/views/search/search.coffee+2−1
@@ -41,7 +41,8 @@ class app.views.Search extends app.View · 40 unmodified lines
41 return41 return
42 42
43 autoFocus: =>43 autoFocus: =>
44 @focus() unless $.isTouchScreen()44 unless $.isTouchScreen()
45 @input.focus() unless document.activeElement is @input
45 return46 return
46 47
47 reset: ->48 reset: ->