I ran into an issue with pmgrowl. I make an extensivly use of the Drupal jquery dialog. The problem now is that in every dialog pmgrowl will also be loaded. This sounds not bad but on every ajax request from pmgrowl the iframe will be newly rendered. This means the dialog is getting to a white screen until the dialog iframe is newly rendered. I solved this problem with a preprocess funktion that unset the closure area where pm growl is loaded, but it seems not to be a good solution. So it would be useful to set the allowed path or ask for the jquery ui dialog template to disable the pmgrowl. Specially this problems grows if use the drupal chat module in this case its impossible to use jquery dialog anymore. So I will post this issue also there.

Will this be fixed for the future?

Comments

jeff.k’s picture

+1
I too have run across this. Can you post your hack?

broncomania’s picture

I delete the closure var from the jquery dialog ui. this is absolutly a temporary solution and not really good, but works, because growl adds the javascript to the footer.

Berdir’s picture

Not sure how to fix it properly, how would we know when we are inside a jquery ui dialog?

broncomania’s picture

Really good question!!How can we now if we are in a dialog?
The only possible solution is for looking in the suggested templates array. If a dialog is called a jquery_ui_dialog.tpl.php exists. This is the only way I found to solve this problem, but I think the author of this plugin gets maybe better idea how to solve this question.

I have also this problem with the drupalchat module and no solution yet. Hope this helps a little bit.

broncomania’s picture