Showing the changes to assets/javascripts/views/content (3 of 5 files). Show all
Unified · Split
| @@ -153,6 +153,9 @@ class app.views.Content extends app.View · 152 unmodified lines | |||
| 153 | return | 153 | return |
| 154 | 154 | ||
| 155 | afterRoute: (route, context) => | 155 | afterRoute: (route, context) => |
| 156 | if route != 'entry' and route != 'type' | ||
| 157 | resetFavicon() | ||
| 158 | |||
| 156 | switch route | 159 | switch route |
| 157 | when 'root' | 160 | when 'root' |
| 158 | @show @rootPage | 161 | @show @rootPage |
| @@ -40,6 +40,7 @@ class app.views.EntryPage extends app.View · 39 unmodified lines | |||
| 40 | if app.disabledDocs.findBy 'slug', @entry.doc.slug | 40 | if app.disabledDocs.findBy 'slug', @entry.doc.slug |
| 41 | @hiddenView = new app.views.HiddenPage @el, @entry | 41 | @hiddenView = new app.views.HiddenPage @el, @entry |
| 42 | 42 | ||
| 43 | setFaviconForDoc(@entry.doc) | ||
| 43 | @delay @polyfillMathML | 44 | @delay @polyfillMathML |
| 44 | @trigger 'loaded' | 45 | @trigger 'loaded' |
| 45 | return | 46 | return |
| @@ -9,6 +9,7 @@ class app.views.TypePage extends app.View · 8 unmodified lines | |||
| 9 | 9 | ||
| 10 | render: (@type) -> | 10 | render: (@type) -> |
| 11 | @html @tmpl('typePage', @type) | 11 | @html @tmpl('typePage', @type) |
| 12 | setFaviconForDoc(@type.doc) | ||
| 12 | return | 13 | return |
| 13 | 14 | ||
| 14 | getTitle: -> | 15 | getTitle: -> |