Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

Nested DOM popup not popping up


Go to End


19 Posts   5276 Views

Avatar
Carbon Crayon

Community Member, 598 Posts

5 September 2009 at 5:12am

Edited: 05/09/2009 5:19am

Hi guys,

I am using a nested DOM and nested fileDOM, almost identical to the example in the video. It all works fine except for the secont level popup, when I click to create a new Object within the nested DOM it just loads the form in the current popupwindow rather than opening a new one.

I'm sure it must just be a simple problem with the JS but I can't seem to find it.

I am using the latest SVN DOM and SS 2.3.3.

Any help much appreciated,

Thanks!

Avatar
UncleCheese

Forum Moderator, 4102 Posts

6 September 2009 at 3:31am

Confirmed the bug. Working on it. Thanks, Aram.

Appears to be another victim of the new DatePickerField. :(

Avatar
UncleCheese

Forum Moderator, 4102 Posts

6 September 2009 at 4:16am

Okay, just checked in a fix. You want to give it a go? NestedDOM is largely untested, so hopefully you can help bang on it a little bit and get it running smoothly. Added a few more enhancements while I was in there.

Avatar
Carbon Crayon

Community Member, 598 Posts

6 September 2009 at 4:19am

Sweet, testing it now :)

Avatar
Carbon Crayon

Community Member, 598 Posts

6 September 2009 at 4:30am

Worked a treat!

The only thing I noticed was that the path the the nested popups close image is absolute so on a localhost it doesnt work, I changed it to relative (removed the first slash) and it works fine now.

line 159 of dataobject_manager.css:

background-image: url(/dataobject_manager/images/closebox.png);

chenaged to:

background-image: url(dataobject_manager/images/closebox.png);

Thanks for your (as usual) superb support UncleCheese! :)

Avatar
UncleCheese

Forum Moderator, 4102 Posts

6 September 2009 at 5:16am

Edited: 06/09/2009 5:16am

Perfect. Thanks for that.

Now on to the 300 other bugs I need to patch up. :)

Avatar
Andrew Houle

Community Member, 140 Posts

28 October 2009 at 5:23am

I have a simple nested DOM setup. My popup window doesn't work either, and I get the following errors:

Error: $(".DataObjectManager").livequery is not a function
Source File: http://64.30.240.49/dataobject_manager/javascript/dataobject_manager.js?m=1255543641
Line: 279

Error: Enumerable is not defined
Source File: http://64.30.240.49/assets/leftandmain.js?m=1256655262
Line: 71

Also, the files that I upload show on every dataobject, not just the dataobject that they should be associated with. Any ideas?

Thanks

Avatar
UncleCheese

Forum Moderator, 4102 Posts

28 October 2009 at 6:28am

Is livequery.js included more than once? Or not at all? Both will result in that error.

Try changing the pathing on lines 544 and 586 of DataObjectManager.php.

Go to Top