[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
This commit is contained in:
David Monjoie
2015-04-01 11:23:01 +02:00
parent a4885bf454
commit 54e8d225fc
@@ -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');