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.
|
|
|
// 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
|
|
|
|
*/
|
|
|
|
app.views.HiddenPage = class HiddenPage extends app.View {
|
|
|
|
static initClass() {
|
|
|
|
this.events = { click: "onClick" };
|
|
|
|
}
|
|
|
|
|
|
|
|
constructor(el, entry) {
|
|
|
|
super(el);
|
|
|
|
this.entry = entry;
|
|
|
|
}
|
|
|
|
|
|
|
|
init() {
|
|
|
|
this.addSubview((this.notice = new app.views.Notice("disabledDoc")));
|
|
|
|
this.activate();
|
|
|
|
}
|
|
|
|
|
|
|
|
onClick(event) {
|
|
|
|
let link;
|
|
|
|
if ((link = $.closestLink(event.target, this.el))) {
|
|
|
|
$.stopEvent(event);
|
|
|
|
$.popup(link);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
app.views.HiddenPage.initClass();
|