History

Fix various issues when switching from single doc to full app

Thibaut Courouble committed 9 years ago

Commit 4f62ccb1 parent 7947f2d4 files · +39 −35Browse files

Showing the changes to assets/javascripts/views (2 of 4 files). Show all

Unified · Split

2 files
  1. assets/javascripts/views/content/offline_page.coffee +2 −5
  2. assets/javascripts/views/content/settings_page.coffee +2 −5
assets/javascripts/views/content/offline_page.coffee+2−5
@@ -45,11 +45,8 @@ class app.views.OfflinePage extends app.View · 44 unmodified lines
4545 docEl: (doc) ->
4646 @find("[data-slug='#{doc.slug}']")
4747
48− onRoute: (route) ->
49− if app.isSingleDoc()
50− window.location = "/#/#{route.path}"
51− else
52− @render()
48+ onRoute: (context) ->
49+ @render()
5350 return
5451
5552 onClick: (event) =>
assets/javascripts/views/content/settings_page.coffee+2−5
@@ -58,9 +58,6 @@ class app.views.SettingsPage extends app.View · 57 unmodified lines
5858 @toggle input.name, input.checked
5959 return
6060
61− onRoute: (route) =>
62− if app.isSingleDoc()
63− window.location = "/#/#{route.path}"
64− else
65− @render()
61+ onRoute: (context) ->
62+ @render()
6663 return

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