You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
devdocs/assets/javascripts/views/pages/support_tables.coffee

15 lines
346 B

#= require views/pages/base
class app.views.SupportTablesPage extends app.views.BasePage
@events:
click: 'onClick'
onClick: (event) ->
return unless event.target.classList.contains 'show-all'
$.stopEvent(event)
el = event.target
el = el.parentNode until el.tagName is 'TABLE'
el.classList.add 'show-all'
return