History

Fix single-doc reload on escape in Firefox

Thibaut committed 11 years ago

Commit 02029e51 parent 44a3b451 file · +4 −2Browse files

Showing the changes to assets (1 of 1 file). Show all

Unified · Split

assets/javascripts/app/router.coffee+4−2
@@ -69,8 +69,10 @@ class app.Router · 68 unmodified lines
6969 return
7070
7171 root: ->
72− window.location = '/' if app.isSingleDoc()
73− @triggerRoute 'root'
72+ if app.isSingleDoc()
73+ setTimeout (-> window.location = '/'), 0
74+ else
75+ @triggerRoute 'root'
7476 return
7577
7678 about: (context) ->

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t