-
Notifications
You must be signed in to change notification settings - Fork 333
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
SS4.1.0 BUG: x-include-js header doesn't work #2156
Comments
@maxime-rainville Can you please validate this bug in the CMS and check that it's applicable broader than just this module? Only then it would warrant a ~5pt fix. |
Just to make it easier to check I have fixed this bug here: jonom/silverstripe-text-target-length#17 |
I tried including some JS in a DataObject CMS form to see if it gets loaded. That part worked fine. |
I'm having a similar problem, but my JS requirements are in the |
I think what might be happening is similar what is happening in this bug: silverstripe/silverstripe-framework#8346. Basically, |
I've investigated this and it seems like it does load the JS, but since we handle this differently with The CSS however is loaded normally which is why you see it under sources. I'll close this issue. |
Looks like SS 4.1 GridField doesn't load JS+CSS on AJAX for example:
Symbiote\GridFieldExtension\GridFieldExtensions has include_requirements function
It will be loaded on regular request to /admin/pages/edit/show/1, but it won't be loaded on AJAX request when you select a page from tree view menu.
I have checked AJAX response headers x-include-css and x-include-css and both of them contain required files, but only CSS will be loaded
The text was updated successfully, but these errors were encountered: