History

Force page reload when loading offline page in single doc mode

Thibaut committed 11 years ago

Commit 16486ff1 parent 6a828301 file · +5 −2Browse files

Unified · Split

assets/javascripts/views/content/offline_page.coffee+5−2
@@ -41,8 +41,11 @@ class app.views.OfflinePage extends app.View · 40 unmodified lines
4141 docEl: (doc) ->
4242 @find("[data-slug='#{doc.slug}']")
4343
44− onRoute: ->
45− @render()
44+ onRoute: (route) ->
45+ if app.isSingleDoc()
46+ window.location = "/#/#{route.path}"
47+ else
48+ @render()
4649 return
4750
4851 onClick: (event) =>

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