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
45 docEl: (doc) ->45 docEl: (doc) ->
46 @find("[data-slug='#{doc.slug}']")46 @find("[data-slug='#{doc.slug}']")
47 47
48 onRoute: (route) ->48 onRoute: (context) ->
49 if app.isSingleDoc()49 @render()
50 window.location = "/#/#{route.path}"
51 else
52 @render()
53 return50 return
54 51
55 onClick: (event) =>52 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
58 @toggle input.name, input.checked58 @toggle input.name, input.checked
59 return59 return
60 60
61 onRoute: (route) =>61 onRoute: (context) ->
62 if app.isSingleDoc()62 @render()
63 window.location = "/#/#{route.path}"
64 else
65 @render()
66 return63 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