[WIP] Testing javascripts in the bottom of the page

This commit is contained in:
Fabien Meghazi 2014-09-03 18:05:01 +02:00
parent eea8d81a86
commit 5c87e7297d
3 changed files with 12 additions and 6 deletions

View File

@ -88,8 +88,8 @@
</t> </t>
</t> </t>
<t t-call-assets="web.assets_common"/> <t t-call-assets="web.assets_common" t-js="false"/>
<t t-call-assets="website.assets_frontend"/> <t t-call-assets="website.assets_frontend" t-js="false"/>
<t t-raw="head or ''" name='layout_head'/> <t t-raw="head or ''" name='layout_head'/>
<t t-if="website and website.google_analytics_key"> <t t-if="website and website.google_analytics_key">
@ -150,6 +150,9 @@
</div> </div>
</footer> </footer>
</div> </div>
<t t-call-assets="web.assets_common" t-css="false"/>
<t t-call-assets="website.assets_frontend" t-css="false"/>
</body> </body>
</html> </html>
</template> </template>
@ -177,8 +180,11 @@
</template> </template>
<template id="editor_head" inherit_id="website.layout" name="Editor" groups="base.group_website_publisher,base.group_website_designer"> <template id="editor_head" inherit_id="website.layout" name="Editor" groups="base.group_website_publisher,base.group_website_designer">
<xpath expr='//t[@t-call-assets="website.assets_frontend"]' position="after"> <xpath expr='//t[@t-call-assets="website.assets_frontend"][@t-js]' position="after">
<t t-call-assets="website.assets_editor"/> <t t-call-assets="website.assets_editor" t-js="false"/>
</xpath>
<xpath expr='//t[@t-call-assets="website.assets_frontend"][@t-css]' position="after">
<t t-call-assets="website.assets_editor" t-css="false"/>
</xpath> </xpath>
</template> </template>

View File

@ -9,7 +9,7 @@
</template> </template>
<template id="instant_click_init" inherit_id="website.layout" name="Instant Click Init" groups="base.group_public"> <template id="instant_click_init" inherit_id="website.layout" name="Instant Click Init" groups="base.group_public">
<xpath expr="//div[@id='wrapwrap']" position="after"> <xpath expr="//body" position="inside">
<script data-no-instant=""> <script data-no-instant="">
InstantClick.init(); InstantClick.init();
</script> </script>

View File

@ -3,7 +3,7 @@
<data> <data>
<template id="header" inherit_id="website.layout" name="LiveChat Import (internal) Scripts"> <template id="header" inherit_id="website.layout" name="LiveChat Import (internal) Scripts">
<xpath expr="//head" position="inside"> <xpath expr="//body" position="inside">
<t t-if="website and website.channel_id"> <t t-if="website and website.channel_id">
<t t-raw="website.channel_id.script_internal"/> <t t-raw="website.channel_id.script_internal"/>
</t> </t>