|
|
@ -164,10 +164,11 @@ class app.views.DocList extends app.View
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
onClick: (event) =>
|
|
|
|
onClick: (event) =>
|
|
|
|
if @disabledTitle and $.hasChild(@disabledTitle, event.target) and event.target.tagName isnt 'A'
|
|
|
|
target = $.eventTarget(event)
|
|
|
|
|
|
|
|
if @disabledTitle and $.hasChild(@disabledTitle, target) and target.tagName isnt 'A'
|
|
|
|
$.stopEvent(event)
|
|
|
|
$.stopEvent(event)
|
|
|
|
@toggleDisabled()
|
|
|
|
@toggleDisabled()
|
|
|
|
else if slug = event.target.getAttribute('data-enable')
|
|
|
|
else if slug = target.getAttribute('data-enable')
|
|
|
|
$.stopEvent(event)
|
|
|
|
$.stopEvent(event)
|
|
|
|
doc = app.disabledDocs.findBy('slug', slug)
|
|
|
|
doc = app.disabledDocs.findBy('slug', slug)
|
|
|
|
app.enableDoc(doc, @onEnabled, @onEnabled) if doc
|
|
|
|
app.enableDoc(doc, @onEnabled, @onEnabled) if doc
|
|
|
|