Modal

Modal


It looks like the Modal implementation needs to be based on what
$.ui.dialog.overlay currently does, and replace that. This isn't a
trivial task:
- there is shared maxZ property to handle
http://dev.jqueryui.com/ticket/4309 - this is read and write both by
$.ui.dialog.overlay and dialog itself
- $.ui.dialog.overlay handles multiple instances, while also creating
an overlay element for each one; its unclear how this should be
transferred to a widget, eg. should the modal be created just once for
each modal dialog, and open/close it, or create and destroy it for
each open/close of the dialog?
- the event capturing has some oddities, and performs badly according
to http://dev.jqueryui.com/ticket/2804
- there's a lot of extra code specifically for IE6, for calculating
the window size
I think a lot of this has to be cleaned up for Modal.
Jörn