Hi,
is it possible to close the lightbox, if the "save" button of a shown comment form is clicked?

Comments

szantog’s picture

Title: show node with comment form in lightbox - close lightbox if save clicked » Comment form in lightbox - close lightbox if save clicked, or add wysiwyg js to lightmodal
Category: task » support

I would like it too.
If i render a custom node_comment form via iframe, after clicking on submit button, the page redirect start in the iframe. But if I launch lightbox via lightmodal, the wysiwyg's javascript doesn't load.

Everything would be nice by me:
1. To add wysiwyg's javascript in lightmodal iframe.
2. Close iframe lightbox after clicking submit button.

Anonymous’s picture

Has anyone found a solution to this?

AndyThornton’s picture

I'd be interested to know if anyone has gotten over this problem. I thought that maybe calling Drupal.attachBehaviors on #modalContainer once it had loaded the new content might go someway ... but alas no.

Isostar’s picture

Version: 6.x-1.9 » 7.x-1.x-dev

I am also interested in a solution. I also tried triggering Drupal.attachBehaviors, and indeed it doesn't work, but i don't understand why.
Anyone?

Yuri’s picture

Anyone got a solution? Seems a popular need and problem.

tebdilikiyafet’s picture

Sam problem here.

Is there anyone who find the solution?