summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2014-12-15 13:46:29 +0100
committerChristophe Matthieu <chm@odoo.com>2014-12-15 13:46:29 +0100
commit633ec310a40ad44acaec0fde3fd9cf84de157f85 (patch)
tree97921a18f33198aa70ba7be3429d15db95753a4e /addons
parentb6b73551dbbb3079f043920f21554b945fa4870e (diff)
[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
Diffstat (limited to 'addons')
-rw-r--r--addons/website_instantclick/static/lib/instantclick/instantclick.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/website_instantclick/static/lib/instantclick/instantclick.js b/addons/website_instantclick/static/lib/instantclick/instantclick.js
index e5e4e3447d3..0a9ae16008d 100644
--- a/addons/website_instantclick/static/lib/instantclick/instantclick.js
+++ b/addons/website_instantclick/static/lib/instantclick/instantclick.js
@@ -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)