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

Plone 5: Register jqueryui resources not as bundle (does not work for… #38

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ JQueryUI Changelog: http://jqueryui.com/changelog/

Bug fixes:

- Plone 5: Register jqueryui resources not as bundle (does not work for generated browser page based resources) but add it to the plone-legacy bundle.
[thet]

- Added uninstall profile
[agitator]

Expand Down
21 changes: 14 additions & 7 deletions collective/js/jqueryui/profiles/default/registry.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
<?xml version="1.0"?>
<registry>

<records prefix="plone.bundles/jqueryui"
interface='Products.CMFPlone.interfaces.IBundleRegistry'>
<value key="enabled">True</value>
<value key="jscompilation">collective.js.jqueryui.custom.min.js</value>
<value key="csscompilation">collective.js.jqueryui.custom.min.css</value>
<value key="compile">False</value>
<value key="depends">plone</value>
<records remove="True" prefix="plone.bundles/jqueryui" interface='Products.CMFPlone.interfaces.IBundleRegistry'/>

<records prefix="plone.resources/jqueryui" interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">collective.js.jqueryui.custom.min.js</value>
<value key="css">
<element>collective.js.jqueryui.custom.min.css</element>
</value>
</records>

<records purge="False" prefix="plone.bundles/plone-legacy" interface="Products.CMFPlone.interfaces.IBundleRegistry">
<value key="last_compilation"></value>
<value key="resources" purge="False">
<element>jqueryui</element>
</value>
</records>

</registry>