Ref #25.
Showing the changes to assets/javascripts (2 of 4 files). Show all
Unified · Split
| @@ -58,7 +58,7 @@ class app.views.DocList extends app.View · 57 unmodified lines | ||
| 58 | 58 | docs = [].concat(app.disabledDocs.all()...) |
| 59 | 59 | |
| 60 | 60 | while doc = docs.shift() |
| 61 | − if doc.version | |
| 61 | + if doc.version? | |
| 62 | 62 | versions = '' |
| 63 | 63 | loop |
| 64 | 64 | versions += @tmpl('sidebarDoc', doc, disabled: true) |
| @@ -34,7 +34,7 @@ class app.views.DocPicker extends app.View · 33 unmodified lines | ||
| 34 | 34 | docs = app.docs.all().concat(app.disabledDocs.all()...) |
| 35 | 35 | |
| 36 | 36 | while doc = docs.shift() |
| 37 | − if doc.version | |
| 37 | + if doc.version? | |
| 38 | 38 | [docs, versions] = @extractVersions(docs, doc) |
| 39 | 39 | html += @tmpl('sidebarVersionedDoc', doc, @renderVersions(versions), open: app.docs.contains(doc)) |
| 40 | 40 | else |