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 | 45 | docEl: (doc) -> |
| 46 | 46 | @find("[data-slug='#{doc.slug}']") |
| 47 | 47 | |
| 48 | − onRoute: (route) -> | |
| 49 | − if app.isSingleDoc() | |
| 50 | − window.location = "/#/#{route.path}" | |
| 51 | − else | |
| 52 | − @render() | |
| 48 | + onRoute: (context) -> | |
| 49 | + @render() | |
| 53 | 50 | return |
| 54 | 51 | |
| 55 | 52 | onClick: (event) => |
| @@ -58,9 +58,6 @@ class app.views.SettingsPage extends app.View · 57 unmodified lines | ||
| 58 | 58 | @toggle input.name, input.checked |
| 59 | 59 | return |
| 60 | 60 | |
| 61 | − onRoute: (route) => | |
| 62 | − if app.isSingleDoc() | |
| 63 | − window.location = "/#/#{route.path}" | |
| 64 | − else | |
| 65 | − @render() | |
| 61 | + onRoute: (context) -> | |
| 62 | + @render() | |
| 66 | 63 | return |