Jump to:

7938 Posts in 1541 Topics by 945 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Javascript Breaks in Strange Circumstances

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 674 Views
  • timwjohn
    Avatar
    Community Member
    98 Posts

    Javascript Breaks in Strange Circumstances Link to this post

    Ok, this is so very weird. I cannot understand why this is happening - way over my head. I'm hoping to God someone can help get to the bottom of this with their knowledge of Javascript and how it works in the CMS (though I'm pretty sure it ain't gonna happen tonight. I've got a nasty bullet to bite tomorrow!)

    I'm using ModelAdmin to manage 3 classes - Sector, Category, LibraryItem (each managed in their own tab of course). Sector and Category CMSFields are pretty much default scafolded. The LibraryItem's CMSFields have a number of DOMs in - namely Image, File and ManyMany - replacing some scaffolded fields.

    I've only just noticed this happening, but can't think what would cause it:

    If I load my ModelAdmin tab in the CMS and straight away open up a LibraryItem, all javascript for all my DOMs is broken. This happens silently in Chrome, I get a useless debug window in IE.

    If, however, I open up one of the other items first - Sector or Category, then open up a LibraryItem - all Javascript is working nicely.

    Please, please help.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Javascript Breaks in Strange Circumstances Link to this post

    Only in Chrome? What error is it throwing?

  • timwjohn
    Avatar
    Community Member
    98 Posts

    Re: Javascript Breaks in Strange Circumstances Link to this post

    My mistake. Silly me. I thought I was using 2.4 beta-2, but when I just checked my SVN properties I realised it was still on beta-1. All updated to the latest versions and it's working like a dream!

    Nice work UC.

    674 Views
Page: 1
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.