Hey

I am running a automodal frame from a view with a link and the .automodal class. This works fine. It links to a node edit page. When I click on a cck nodereference field to add a new one (with node reference) it works fine too. But when I want to search with node reference it opens en closes immediately

hope someone can help me,

greetings, Daniel

Comments

danielbeeke2’s picture

I've tried the development version to.
same problem

danielbeeke2’s picture

$settings += array(
'autoFit' => TRUE,
'draggable' => FALSE,

'automodalClose' => FALSE,
'automodalReload' => TRUE,
);

I changed the settings in automodal.module to the above and it works fine

mfer’s picture

Category: task » support
Status: Active » Postponed (maintainer needs more info)

Instead of hacking the module I would instead create my own class instead of automodal and use that on the link. Then, make a call somewhere using:

automodal_add('.myCustomClass', array('automodalClose' => FALSE));

This way your custom piece has your own custom settings. You can do this all over.

If this doesn't work it might be good to make the default config variables.

danielbeeke2’s picture

thanks, that's better.
still having this problem. with the options switched it doesn't close the parent window.

d34dman’s picture

subscribe

d34dman’s picture

Dear maintainer,

it would be a nice feature to be able to add default settings for .automodal ( or all classes) in "admin/settings/automodal" page. This would be highly beneficial for those who don't want to do any php coding on their websites. These fine details are what i believe, makes a framework, a CMS.

danielbeeke's suggestion in comment #2 did help me get around the issue. And yes mfer's reply was a little inconvenient for me to implement as i had to write a new custom module with just two lines of code to implement it. This i feel is a serious UX issue.

dsnopek’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Fixed

@mfer's solution is the correct one. It would be interesting to allow changing the default settings (include automodalClose) on the settings page. However, since that default works in 99% of cases, I'm going to leave it for now.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.