|
|
I may be missing the obvious "correct" way to do this so please give me any
hints if you have any.
Desired usage (confirm with option):
* Modal with some fields from a larger HTML form
* User fills in this field and "submits" the form
* Fields are push back to the larger form
* Form submits
Legacy reasons prevent me from bring the whole form into the pop-up.
Problem with 1.3b1 that prevent desired usage.
* onClose call back occurs before data is pushed back into the form
I'm unaware of a "real" onClose callback that happens after the data has be
fully pushed back into the page. Where do I put my forms[0].submit() ?
Suggested solution; push the data back twice. Additionally do it before
calling the the onClose callback.
In Code this could be inserting this block before calling the onClose event.
if (this.dialog.parentNode && this.opts.persist) {
this.dialog.data.appendTo(this.dialog.parentNode).hide();
}
|