Skip to content
Snippets Groups Projects
Commit 633ec310 authored by Christophe Matthieu's avatar Christophe Matthieu
Browse files

[FIX] website_instantclick: this lib create some bug because the odoo assets...

[FIX] website_instantclick: this lib create some bug because the odoo assets are loaded in the body and some event are binded more of one time. Change the js lib  because the xml can't be change in 8.0. TODO: move assets into the head and fix js files and remove this commit in master
parent b6b73551
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,11 @@ var InstantClick = function(document, location) {
}
function changePage(title, body, newUrl, scrollY_) {
// fix by odoo because the script assets are loaded in the body and not in the head
// TODO: remove wen forward port in master
$(document).off()
// end
var doc = document.implementation.createHTMLDocument('')
doc.documentElement.innerHTML = body
document.documentElement.replaceChild(doc.body, document.body)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment