From 54e8d225fc4be344eb663b11f791eaa75b16a7b1 Mon Sep 17 00:00:00 2001 From: David Monjoie Date: Tue, 24 Mar 2015 17:15:05 +0100 Subject: [PATCH] [FIX] website: render data-oe-call when website is ready In master, js files are loaded at the top of the page so we need to call this function only when the website is ready --- addons/website/static/src/js/website.snippets.animation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/website/static/src/js/website.snippets.animation.js b/addons/website/static/src/js/website.snippets.animation.js index 63ed2561a00..240b1825e88 100644 --- a/addons/website/static/src/js/website.snippets.animation.js +++ b/addons/website/static/src/js/website.snippets.animation.js @@ -58,9 +58,9 @@ }); }; - load_called_template(); // if asset is placed into head, move this call into $(document).ready - $(document).ready(function () { + load_called_template(); // if asset is placed into head, move this call into $(document).ready + if ($(".o_gallery:not(.oe_slideshow)").size()) { // load gallery modal template website.add_template_file('/website/static/src/xml/website.gallery.xml');