Convert multiple pages into SPA
This commit is contained in:
@@ -22,6 +22,10 @@ export const open = (button_rect: DOMRect) => {
|
||||
dialog.style.top = Math.round(Math.min(min_top, max_top)) + "px"
|
||||
}
|
||||
|
||||
export const close = () => {
|
||||
dialog.close()
|
||||
}
|
||||
|
||||
// Attach a click handler so that the dialog is closed when the user clicks
|
||||
// outside the dialog. The way this check works is that there is usually an
|
||||
// element inside the dialog with all the content. When the click target is
|
||||
|
Reference in New Issue
Block a user