Closed (fixed)
Project:
Automodal
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2010 at 13:26 UTC
Updated:
28 Nov 2013 at 11:50 UTC
Jump to comment: Most recent
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
Comment #1
danielbeeke2 commentedI've tried the development version to.
same problem
Comment #2
danielbeeke2 commented$settings += array(
'autoFit' => TRUE,
'draggable' => FALSE,
'automodalClose' => FALSE,
'automodalReload' => TRUE,
);
I changed the settings in automodal.module to the above and it works fine
Comment #3
mfer commentedInstead 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:
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.
Comment #4
danielbeeke2 commentedthanks, that's better.
still having this problem. with the options switched it doesn't close the parent window.
Comment #5
d34dman commentedsubscribe
Comment #6
d34dman commentedDear 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.
Comment #7
dsnopek@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.