7921 Posts in 1359 Topics by 933 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Javascript Breaks in Strange Circumstances
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 569 Views |
-
Javascript Breaks in Strange Circumstances

22 March 2010 at 12:34pm
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.
-
Re: Javascript Breaks in Strange Circumstances

22 March 2010 at 2:34pm
Only in Chrome? What error is it throwing?
-
Re: Javascript Breaks in Strange Circumstances

24 March 2010 at 6:56am
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.
| 569 Views | ||
|
Page:
1
|
Go to Top |

