1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-18 08:43:11 +00:00
BurningTreeC 33ba69e852 Modals: Display in source-window (#3539)
* Make modals display in source Window

this makes modals display within the window where they got opened, with the parameter `rootwindow` that, if `yes` or `true`, shows the modal always in the root TW window (`<$action-sendmessage $message="tm-modal" $param="mymodal" rootwindow="yes|true"/>`)

* pass the full event to $tw.modal.display

we need the event there to find `srcDocument` and `srcWindow`

* pass event in options object

* update modal.js to use options.event

* add docs for rootwindow tm-modal attribute
2018-11-18 20:57:04 +00:00
..
2018-09-28 16:01:32 +01:00
2018-06-13 15:50:47 +01:00
2018-10-30 17:39:18 +00:00
2017-02-04 17:24:25 +00:00