Showing the changes to assets/javascripts (2 of 3 files). Show all
Unified · Split
| @@ -52,7 +52,7 @@ templates.sidebarVersionedDoc = (doc, versions, options = {}) -> · 51 unmodified lines | |||
| 52 | html + """" tabindex="0">#{arrow}#{doc.name}</div><div class="_list _list-sub">#{versions}</div>""" | 52 | html + """" tabindex="0">#{arrow}#{doc.name}</div><div class="_list _list-sub">#{versions}</div>""" |
| 53 | 53 | ||
| 54 | templates.sidebarDisabled = (options) -> | 54 | templates.sidebarDisabled = (options) -> |
| 55 | """<h6 class="_list-title">#{arrow}Disabled (#{options.count})</h6>""" | 55 | """<h6 class="_list-title">#{arrow}Disabled (#{options.count}) <a href="/settings" class="_list-title-link" tabindex="-1">Customize</a></h6>""" |
| 56 | 56 | ||
| 57 | templates.sidebarDisabledList = (html) -> | 57 | templates.sidebarDisabledList = (html) -> |
| 58 | """<div class="_disabled-list">#{html}</div>""" | 58 | """<div class="_disabled-list">#{html}</div>""" |
| @@ -164,7 +164,7 @@ class app.views.DocList extends app.View · 163 unmodified lines | |||
| 164 | return | 164 | return |
| 165 | 165 | ||
| 166 | onClick: (event) => | 166 | onClick: (event) => |
| 167 | if @disabledTitle and $.hasChild(@disabledTitle, event.target) | 167 | if @disabledTitle and $.hasChild(@disabledTitle, event.target) and event.target.tagName isnt 'A' |
| 168 | $.stopEvent(event) | 168 | $.stopEvent(event) |
| 169 | @toggleDisabled() | 169 | @toggleDisabled() |
| 170 | else if slug = event.target.getAttribute('data-enable') | 170 | else if slug = event.target.getAttribute('data-enable') |