[FIX] website_forum: moved editor-related js files into the editor asset

This commit is contained in:
Simon Lejeune 2014-09-11 14:08:03 +02:00
parent a259370fed
commit c240b4a4e8
1 changed files with 7 additions and 9 deletions

View File

@ -2,15 +2,6 @@
<openerp>
<data>
<!-- Editor custom -->
<template id="assets_frontend" inherit_id="website.assets_frontend" name="website_forum assets">
<xpath expr="/t" position="inside">
<link rel='stylesheet' href="/website_forum/static/src/css/website_forum.css"/>
<script type="text/javascript" src="/website_forum/static/src/js/website.tour.forum.js"/>
<script type="text/javascript" src="/website_forum/static/src/js/website_forum.editor.js"/>
</xpath>
</template>
<!-- Layout add nav and footer -->
<template id="header_footer_custom" inherit_id="website.footer_default"
name="Footer Questions Link">
@ -37,6 +28,13 @@
</xpath>
</template>
<template id="assets_editor" inherit_id="website.assets_editor" name="Forum Editor" groups="base.group_user">
<xpath expr="." position="inside">
<script type="text/javascript" src="/website_forum/static/src/js/website.tour.forum.js"/>
<script type="text/javascript" src="/website_forum/static/src/js/website_forum.editor.js"/>
</xpath>
</template>
<!-- Page Index -->
<template id="header" name="Forum Index">
<t t-call="website.layout">