[WIP] Testing javascripts in the bottom of the page
authorFabien Meghazi <fme@openerp.com>
Wed, 3 Sep 2014 16:05:01 +0000 (18:05 +0200)
committerFabien Meghazi <fme@openerp.com>
Tue, 16 Sep 2014 17:54:59 +0000 (19:54 +0200)
addons/website/views/website_templates.xml
addons/website_instantclick/views/website_instantclick.xml
addons/website_livechat/views/website_livechat.xml

index b8b9234..eb35302 100644 (file)
@@ -88,8 +88,8 @@
                 </t>
             </t>
 
-            <t t-call-assets="web.assets_common"/>
-            <t t-call-assets="website.assets_frontend"/>
+            <t t-call-assets="web.assets_common" t-js="false"/>
+            <t t-call-assets="website.assets_frontend" t-js="false"/>
 
             <t t-raw="head or ''" name='layout_head'/>
             <t t-if="website and website.google_analytics_key">
                     </div>
                 </footer>
             </div>
+
+            <t t-call-assets="web.assets_common" t-css="false"/>
+            <t t-call-assets="website.assets_frontend" t-css="false"/>
         </body>
     </html>
 </template>
 </template>
 
 <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">
-        <t t-call-assets="website.assets_editor"/>
+    <xpath expr='//t[@t-call-assets="website.assets_frontend"][@t-js]' position="after">
+        <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>
 </template>
 
index 3674cea..c2f6245 100644 (file)
@@ -9,7 +9,7 @@
         </template>
 
         <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="">
                     InstantClick.init();
                 </script>
index 75aeaea..63f0d33 100644 (file)
@@ -3,7 +3,7 @@
     <data>
 
 <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-raw="website.channel_id.script_internal"/>
         </t>