Unified · Split
| @@ -31,9 +31,12 @@ class app.views.DocList extends app.View · 30 unmodified lines | |||
| 31 | 31 | ||
| 32 | render: => | 32 | render: => |
| 33 | @html @tmpl('sidebarDoc', app.docs.all()) | 33 | @html @tmpl('sidebarDoc', app.docs.all()) |
| 34 | unless app.isSingleDoc() or app.settings.hasDocs() | 34 | @renderDisabled() unless app.isSingleDoc() or app.settings.hasDocs() |
| 35 | @append @tmpl('sidebarDisabled') + | 35 | return |
| 36 | @tmpl('sidebarDoc', app.disabledDocs.all(), disabled: true) | 36 | |
| 37 | renderDisabled: -> | ||
| 38 | @append @tmpl('sidebarDisabled') + | ||
| 39 | @tmpl('sidebarDoc', app.disabledDocs.all(), disabled: true) | ||
| 37 | return | 40 | return |
| 38 | 41 | ||
| 39 | reset: -> | 42 | reset: -> |