add plone.resource dependency and change to plone:static
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<configure
|
||||
xmlns="http://namespaces.zope.org/zope"
|
||||
xmlns:browser="http://namespaces.zope.org/browser"
|
||||
xmlns:plone="http://namespaces.plone.org/plone"
|
||||
xmlns:zcml="http://namespaces.zope.org/zcml"
|
||||
i18n_domain="plone">
|
||||
|
||||
@@ -129,10 +130,10 @@
|
||||
/>
|
||||
|
||||
<!-- Resource directory for javascripts -->
|
||||
<browser:resourceDirectory
|
||||
<plone:static
|
||||
name="plone.app.discussion.javascripts"
|
||||
type="plone"
|
||||
directory="javascripts"
|
||||
layer="..interfaces.IDiscussionLayer"
|
||||
/>
|
||||
|
||||
<!-- Control panel -->
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
</div>
|
||||
|
||||
<script type="text/javascript"
|
||||
tal:attributes="src string:${portal_url}/++resource++plone.app.discussion.javascripts/controlpanel.js">
|
||||
tal:attributes="src string:${portal_url}/++plone++plone.app.discussion.javascripts/controlpanel.js">
|
||||
</script>
|
||||
|
||||
</article>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
b_start request/b_start | b_start;
|
||||
moderation_enabled view/moderation_enabled;">
|
||||
<script type="text/javascript"
|
||||
tal:attributes="src string:${context/portal_url}/++resource++plone.app.discussion.javascripts/moderation.js">
|
||||
tal:attributes="src string:${context/portal_url}/++plone++plone.app.discussion.javascripts/moderation.js">
|
||||
</script>
|
||||
|
||||
<h1 class="documentFirstHeading" i18n:translate="heading_moderate_comments">
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<metadata>
|
||||
<version>1000</version>
|
||||
<dependencies>
|
||||
<dependency>profile-plone.resource:default</dependency>
|
||||
<dependency>profile-plone.app.registry:default</dependency>
|
||||
</dependencies>
|
||||
</metadata>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<records prefix="plone.resources/plone-app-discussion"
|
||||
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
|
||||
<value key="js">++resource++plone.app.discussion.javascripts/comments.js</value>
|
||||
<value key="js">++plone++plone.app.discussion.javascripts/comments.js</value>
|
||||
</records>
|
||||
<records prefix="plone.bundles/plone-legacy"
|
||||
interface='Products.CMFPlone.interfaces.IBundleRegistry'>
|
||||
|
||||
Reference in New Issue
Block a user