hidden.js 447 B

12345678910111213141516171819202122
  1. app.views.HiddenPage = class HiddenPage extends app.View {
  2. static events = { click: "onClick" };
  3. constructor(el, entry) {
  4. super(el);
  5. this.entry = entry;
  6. }
  7. init() {
  8. this.notice = new app.views.Notice("disabledDoc");
  9. this.addSubview(this.notice);
  10. this.activate();
  11. }
  12. onClick(event) {
  13. let link;
  14. if ((link = $.closestLink(event.target, this.el))) {
  15. $.stopEvent(event);
  16. $.popup(link);
  17. }
  18. }
  19. };