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

31 lines
775 B

// TODO: This file was created by bulk-decaffeinate.
// Sanity-check the conversion and remove this comment.
/*
* decaffeinate suggestions:
* DS206: Consider reworking classes to avoid initClass
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
*/
//= require views/pages/base
app.views.SupportTablesPage = class SupportTablesPage extends (
1 year ago
app.views.BasePage
) {
static initClass() {
1 year ago
this.events = { click: "onClick" };
}
onClick(event) {
1 year ago
if (!event.target.classList.contains("show-all")) {
return;
}
$.stopEvent(event);
let el = event.target;
1 year ago
while (el.tagName !== "TABLE") {
el = el.parentNode;
}
el.classList.add("show-all");
}
};
app.views.SupportTablesPage.initClass();