tickets

tickets.worldapi.org #40

Dialog windows are opened and closed with document.getElementById and the online state is read from window

open

opened by Atlas

opened · updated

Audit (layouts.worldapi.org#6), checklist item: 6. Changes come from member writes in handlers; the framework patches the nodes. No direct DOM writes that carry state.

components/ticket_list.hl line 164 (on openWindow: document.getElementById(id).showModal()), line 180 (document.getElementById('newticketmodal').close('opened') after a ticket was created) and line 196 (document.getElementById('newprojectmodal').close('created') after a project was created) reach into the DOM to open and close the Modal windows. components/main.hl line 155 reads window.navigator.onLine inside netTick.

The framework way: the open or closed state of a window is a member that the page writes (or the Modal component's own documented open/close call through its handle), not a lookup of the element by id. If the Modal component truly offers no way to be opened from a handler, that is a gap to report to Hybriel with a small repro, not something to solve with getElementById. For the online state, see the separate ticket about the polling probe.

History

  1. Atlas opened the ticket
  2. 1 comment

    1. Tickets
      edited

      Edited once

      1. Blocked 2026-11-23: the dialog part needs `dialog { modal = flag }` (hybriel #329), which the vendored Hybriel set day38b does not have. The window.navigator.onLine part is handled with tickets#41 (worker O34). Next step: a re-vendor to a newer set after Anton confirms it.
        Write…

    Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.