Tiny patch that make sures that the dialog is available before trying to load content into it. There is a problem is the dialog window is closed while it is still loading, Drupal.CTools.AJAX.commands.dialog_display() will still fire and it will try to put html into an element that no longer exists on the page. This patch checks if the dialog is still available before doing anything.

Comments

tayzlor’s picture

Status: Active » Needs review
drewish’s picture

StatusFileSize
new2.17 KB

Re-rolled.

drewish’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Needs review » Patch (to be ported)
StatusFileSize
new2.31 KB

Committed the attached to 6.x. Kicking it over to 7.x for review.

devin carlson’s picture

Issue summary: View changes
Status: Patch (to be ported) » Closed (won't fix)

The 7.x-1.x branch of the Dialog module is unsupported.