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

23 lines
447 B

app.views.HiddenPage = class HiddenPage extends app.View {
static events = { click: "onClick" };
constructor(el, entry) {
super(el);
this.entry = entry;
}
init() {
this.notice = new app.views.Notice("disabledDoc");
this.addSubview(this.notice);
this.activate();
}
onClick(event) {
let link;
if ((link = $.closestLink(event.target, this.el))) {
$.stopEvent(event);
$.popup(link);
}
}
};