On jQuery UI 1.10.2 (jquery_update patch) I am getting errors when I have a dialog link within a dialog.

Uncaught Error: cannot call methods on dialog prior to initialization; attempted to call method 'option'

The following patch (which inits dialog with options rather than setting them) addresses this issue. It may not be enough to fix all dialog in dialog errors.

Comments

queenvictoria’s picture

Patch attached

drclaw’s picture

Thanks for the patch, but I'm not sure if this really fixes the problem. On my end, when the link inside the dialog is clicked:

  • The original dialog content area is removed, but the title bar remains
  • A new dialog is indeed created below the old title bar
  • If you close all the dialogs, the original link only opens the title bar with no content area

We'll need to conjure up a better solution, I think...

drclaw’s picture

Issue summary: View changes

I think this one might actually be fixed now... somewhat... maybe? I just incepted a dialog link three layers deep and it worked. Maybe give it a try with the newest version of the module?

drclaw’s picture

Status: Active » Closed (fixed)