Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Nested DOM popup not popping up

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2 3
Go to End
Author Topic: 3030 Views
  • Aram
    Avatar
    Community Member
    598 Posts

    Nested DOM popup not popping up Link to this post

    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!

  • UncleCheese
    Avatar
    4085 Posts

    Re: Nested DOM popup not popping up Link to this post

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

    Appears to be another victim of the new DatePickerField.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Nested DOM popup not popping up Link to this post

    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.

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: Nested DOM popup not popping up Link to this post

    Sweet, testing it now

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: Nested DOM popup not popping up Link to this post

    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!

  • UncleCheese
    Avatar
    4085 Posts

    Re: Nested DOM popup not popping up Link to this post

    Perfect. Thanks for that.

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

  • Andrew Houle
    Avatar
    Community Member
    132 Posts

    Re: Nested DOM popup not popping up Link to this post

    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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Nested DOM popup not popping up Link to this post

    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.

    3030 Views
Page: 1 2 3
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.