History

Fix Content#onAltRight when no link is found

Thibaut committed 12 years ago

Commit eb1141c1 parent 27d7c051 file · +1 −1Browse files

Unified · Split

assets/javascripts/views/content/content.coffee+1−1
@@ -153,7 +153,7 @@ class app.views.Content extends app.View · 152 unmodified lines
153 153
154 onAltRight: (event) =>154 onAltRight: (event) =>
155 unless document.activeElement and $.hasChild @el, document.activeElement155 unless document.activeElement and $.hasChild @el, document.activeElement
156 @findByTag('a').focus()156 @findByTag('a')?.focus()
157 $.stopEvent(event)157 $.stopEvent(event)
158 158
159 findTargetByHash: (hash) ->159 findTargetByHash: (hash) ->