Showing the changes to assets/javascripts/views (2 of 4 files). Show all
Unified · Split
| @@ -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 | return | 50 | return |
| 54 | 51 | ||
| 55 | onClick: (event) => | 52 | onClick: (event) => |
| @@ -58,9 +58,6 @@ class app.views.SettingsPage extends app.View · 57 unmodified lines | |||
| 58 | @toggle input.name, input.checked | 58 | @toggle input.name, input.checked |
| 59 | return | 59 | 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 | return | 63 | return |