Unified · Split
| @@ -13,13 +13,16 @@ class app.views.DocPicker extends app.View · 12 unmodified lines | ||
| 13 | 13 | activate: -> |
| 14 | 14 | if super |
| 15 | 15 | @render() |
| 16 | + @findByTag('input').focus() | |
| 16 | 17 | app.appCache?.on 'progress', @onAppCacheProgress |
| 18 | + $.on @el, 'focus', @onFocus, true | |
| 17 | 19 | return |
| 18 | 20 | |
| 19 | 21 | deactivate: -> |
| 20 | 22 | if super |
| 21 | 23 | @empty() |
| 22 | 24 | app.appCache?.off 'progress', @onAppCacheProgress |
| 25 | + $.off @el, 'focus', @onFocus, true | |
| 23 | 26 | return |
| 24 | 27 | |
| 25 | 28 | render: -> |
| @@ -58,6 +61,9 @@ class app.views.DocPicker extends app.View · 32 unmodified lines | ||
| 58 | 61 | @save() |
| 59 | 62 | return |
| 60 | 63 | |
| 64 | + onFocus: (event) -> | |
| 65 | + $.scrollTo event.target.parentNode, null, 'continuous', bottomGap: 2 | |
| 66 | + | |
| 61 | 67 | onEnter: => |
| 62 | 68 | @save() |
| 63 | 69 | return |
| @@ -268,6 +268,7 @@ · 267 unmodified lines | ||
| 268 | 268 | } |
| 269 | 269 | |
| 270 | 270 | ._list-label { |
| 271 | + cursor: pointer; | |
| 271 | 272 | transition: .2s; |
| 272 | 273 | @extend %_list-dir; |
| 273 | 274 | |