[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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user