Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
moniarde opened this issue Mar 1, 2016 · 2 comments
Open

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

moniarde opened this issue Mar 1, 2016 · 2 comments

Comments

@moniarde
Copy link

moniarde commented Mar 1, 2016

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
Copy link
Author

moniarde commented Mar 3, 2016

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
Copy link
Author

moniarde commented Mar 3, 2016

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants