mxCalendar icon indicating copy to clipboard operation
mxCalendar copied to clipboard

Uncaught TypeError: b[(d.xtype || e)] when adding new Event

Open moniarde opened this issue 9 years ago • 2 comments

I've just freshly installed mxCalendar 1.1.10-pl to MODx 2.4.2-pl, and have clicked the "Create a New Calendar Item" button. But the pop-up window does not show. Chrome Developer Tools shows an "Uncaught TypeError: b[(d.xtype || e)]" @ ext-all.js:21; MODx Error Reports shows no error. I can't find an issue like this online anywhere, not sure where to find a solution to this.

moniarde avatar Mar 01 '16 04:03 moniarde

I managed to get some info from Developer Tools that may be of assistance for this... screen shot 2016-03-03 at 11 08 16

moniarde avatar Mar 03 '16 03:03 moniarde

Ok, I have some evidence of something not working properly.

/assets/components/mxcalendars/js/mgr/widgets/mxcalendars.grid.js: lines 581 and 604 xtype: mxcCore.config.event_desc_type == 'htmleditor' ? 'textarea' : mxcCore.config.event_desc_type I checked the value of mxcCore.config.event_desc_type, and it only returned "h", not the options required.

I checked the MODx system settings - it was selected as "htmleditor". I changed this to "textarea", but the value of mxcCore.config.event_desc_type didn't change from "h". screen shot 2016-03-03 at 15 55 33

Coincidentally, this value truncation seems to be happening for mxcCore.config.category_required also; The value I think should be "true", however it's coming through to the grid as "t". screen shot 2016-03-03 at 15 55 27 (Images are screen grabs from Developer Tools)

moniarde avatar Mar 03 '16 08:03 moniarde