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

Why do we have javascripts outside jsregistry.xml? #613

Open
idgserpro opened this issue Mar 22, 2016 · 4 comments
Open

Why do we have javascripts outside jsregistry.xml? #613

idgserpro opened this issue Mar 22, 2016 · 4 comments

Comments

@idgserpro
Copy link
Member

We have and installation that was using collective.cover 1.0a6. Trying to update it to 1.0a12, because we need #526 in some IE11 tests for some clients, we realized the error wasn't fixed at all.

Even after running all upgradeSteps and re-running them again and again we were still getting errors. After lots of debugging and suffering, we found out that layout_edit.js isn't in jsregistry.xml: being in the template itself, this file was cached by the client browser and, since the fix was inside this js, it couldn't work since the cache is referencing an old file. After destroying the browser cache, it worked.

Any reason why we can't have the javascripts resources in jsregistry.xml? We believe this issue can haunt us in the future.

(We even think this may be related to this issue closed as invalid #548)

@hvelarde
Copy link
Member

again, just historical reasons: we need to do a huge refactor on all the JS code but it's going to take time and resources that we don't have right now; so, feel free to contribute.

regarding that issue you mentioned, I can't remember exactly why I closed it, but I think it was not related with this package.

@idgserpro
Copy link
Member Author

No problem, at least we know it can be changed since it's not exactly a requirement.

We think it's related because we had the same error: since the tiles have the same uuid, when you're getting all attributes (like 'text', 'image') it gets the tile with uuid that doesn't have that attributes. The creation of uuids in js fixes it.

@hvelarde
Copy link
Member

awesome! you're doing a great job on finding the root cause of many issues; thank you, guys!

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

3 participants