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.js

21 lines
417 B

//= require views/pages/base
app.views.SupportTablesPage = class SupportTablesPage extends (
app.views.BasePage
) {
static events = { click: "onClick" };
onClick(event) {
if (!event.target.classList.contains("show-all")) {
return;
}
$.stopEvent(event);
let el = event.target;
while (el.tagName !== "TABLE") {
el = el.parentNode;
}
el.classList.add("show-all");
}
};